I have this code:
adapter.send(:conditions_to_fields, :user => user).should == {\'owner_id\' => user.id}
which I updated to use expect wi
It thinks you’re passing a block to eq, not a hash. You can solve this by using parentheses around the method arguments:
eq
expect(adapter.foo).to eq({'owner_id' => user.id})