test/hyperclient/entry_point_test.rb in hyperclient-0.8.6 vs test/hyperclient/entry_point_test.rb in hyperclient-0.9.0
- old
+ new
@@ -43,27 +43,21 @@
entry_point.connection.options.params_encoder.must_equal Faraday::FlatParamsEncoder
end
it 'raises a ConnectionAlreadyInitializedError if attempting to modify headers' do
entry_point.connection.must_be_kind_of Faraday::Connection
- lambda { entry_point.headers = {} }.must_raise ConnectionAlreadyInitializedError
+ -> { entry_point.headers = {} }.must_raise ConnectionAlreadyInitializedError
end
it 'raises a ConnectionAlreadyInitializedError if attempting to modify the faraday block' do
entry_point.connection.must_be_kind_of Faraday::Connection
- lambda { entry_point.connection {} }.must_raise ConnectionAlreadyInitializedError
+ -> { entry_point.connection {} }.must_raise ConnectionAlreadyInitializedError
end
end
describe 'initialize' do
it 'sets a Link with the entry point url' do
entry_point._url.must_equal 'http://my.api.org'
- end
- end
-
- describe 'options' do
- it 'enables the async option by default' do
- entry_point.options[:async].must_equal true
end
end
end
describe 'faraday_options' do