Remove unused variable from object_serializer_class_methods_spec

This commit is contained in:
Shuhei Kitagawa 2018-03-21 17:18:24 +09:00 committed by Shishir Kakaraddi
parent fea384b4c6
commit b18da3da59

View File

@ -67,7 +67,6 @@ describe FastJsonapi::ObjectSerializer do
it 'sets the correct transform_method when use_hyphen is used' do
MovieSerializer.use_hyphen
warning_message = 'DEPRECATION WARNING: use_hyphen is deprecated and will be removed from fast_jsonapi 2.0 use (set_key_transform :dash) instead'
expect { MovieSerializer.use_hyphen }.to output.to_stderr
expect(MovieSerializer.instance_variable_get(:@transform_method)).to eq :dasherize
end