I have this code:
adapter.send(:conditions_to_fields, :user => user).should == {\'owner_id\' => user.id}
which I updated to use expect wi
One way to overcome this is to use Hash instead of {}
Hash
{}
e.g.
expect(adapter.send(:conditions_to_fields, :pwner => user)).to eq \ Hash('owner_id' => user.id, 'owner_type' => user.class.name)