test/adapter_test.rb in cheap_ams-0.10.5 vs test/adapter_test.rb in cheap_ams-0.10.6
- old
+ new
@@ -33,15 +33,15 @@
adapter = ActiveModel::Serializer::Adapter.create(@serializer)
assert_equal ActiveModel::Serializer::Adapter::FlattenJson, adapter.class
end
def test_create_adapter_with_override
- adapter = ActiveModel::Serializer::Adapter.create(@serializer, { adapter: :json_api})
+ adapter = ActiveModel::Serializer::Adapter.create(@serializer, { adapter: :json_api })
assert_equal ActiveModel::Serializer::Adapter::JsonApi, adapter.class
end
def test_inflected_adapter_class_for_known_adapter
- ActiveSupport::Inflector.inflections(:en){|inflect| inflect.acronym 'API' }
+ ActiveSupport::Inflector.inflections(:en) { |inflect| inflect.acronym 'API' }
klass = ActiveModel::Serializer::Adapter.adapter_class(:json_api)
ActiveSupport::Inflector.inflections.acronyms.clear
assert_equal ActiveModel::Serializer::Adapter::JsonApi, klass