File tree 3 files changed +4
-6
lines changed
3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,5 @@ group :test do
27
27
gem 'mocha'
28
28
gem 'rack-test'
29
29
gem 'spinach'
30
- gem 'turn'
31
30
gem 'webmock'
32
31
end
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module Hyperclient
16
16
17
17
it 'returns nil if the property is not present' do
18
18
link = Link . new ( 'key' , { } , entry_point )
19
- link . send ( "_#{ prop } " ) . must_equal nil
19
+ link . send ( "_#{ prop } " ) . must_be_nil
20
20
end
21
21
end
22
22
end
@@ -301,7 +301,7 @@ module Hyperclient
301
301
end
302
302
303
303
resource . foos . _embedded . orders . first . id . must_equal 1
304
- resource . foos . first . must_equal nil
304
+ resource . foos . first . must_be_nil
305
305
end
306
306
307
307
it 'backtracks when navigating links' do
Original file line number Diff line number Diff line change 1
1
$LOAD_PATH << 'lib'
2
2
3
- require 'minitest/spec'
4
3
require 'minitest/autorun'
4
+ require 'minitest/pride'
5
5
require 'mocha/setup'
6
- require 'turn'
7
6
require 'json'
8
7
9
- MiniTest ::Unit :: TestCase . class_eval do
8
+ MiniTest ::Test . class_eval do
10
9
def stub_request ( conn , adapter_class = Faraday ::Adapter ::Test , &stubs_block )
11
10
adapter_handler = conn . builder . handlers . find { |h | h . klass < Faraday ::Adapter }
12
11
conn . builder . swap ( adapter_handler , adapter_class , &stubs_block )
You can’t perform that action at this time.
0 commit comments