Skip to content

Commit

Permalink
Drop the turn dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki24 committed Aug 25, 2019
1 parent f8440d9 commit 403c35e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ group :test do
gem 'mocha'
gem 'rack-test'
gem 'spinach'
gem 'turn'
gem 'webmock'
end
4 changes: 2 additions & 2 deletions test/hyperclient/link_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Hyperclient

it 'returns nil if the property is not present' do
link = Link.new('key', {}, entry_point)
link.send("_#{prop}").must_equal nil
link.send("_#{prop}").must_be_nil
end
end
end
Expand Down Expand Up @@ -301,7 +301,7 @@ module Hyperclient
end

resource.foos._embedded.orders.first.id.must_equal 1
resource.foos.first.must_equal nil
resource.foos.first.must_be_nil
end

it 'backtracks when navigating links' do
Expand Down
5 changes: 2 additions & 3 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
$LOAD_PATH << 'lib'

require 'minitest/spec'
require 'minitest/autorun'
require 'minitest/pride'
require 'mocha/setup'
require 'turn'
require 'json'

MiniTest::Unit::TestCase.class_eval do
MiniTest::Test.class_eval do
def stub_request(conn, adapter_class = Faraday::Adapter::Test, &stubs_block)
adapter_handler = conn.builder.handlers.find { |h| h.klass < Faraday::Adapter }
conn.builder.swap(adapter_handler, adapter_class, &stubs_block)
Expand Down

0 comments on commit 403c35e

Please sign in to comment.