1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Remove problematic did_you_mean spec

I had thought did_you_mean for KeyErrors was available in Ruby 2.3 and
higher, but this spec seems to be failing for Ruby 2.3 and 2.4.
Since we have OK coverage of the custom KeyError message behavior
elsewhere, I don't think this test is essential.
This commit is contained in:
Daniel Colson 2018-12-16 22:48:06 -05:00
parent b86ec136b6
commit 3a4d6f489c
No known key found for this signature in database
GPG key ID: 88A364BBE77B1353

View file

@ -21,12 +21,6 @@ describe FactoryBot::Registry do
to raise_error(KeyError, "Great thing not registered: \"object_name\"")
end
it "includes a did_you_mean message" do
subject.register(:factory_bot, registered_object)
expect { subject.find(:factory_bit) }.
to raise_error(KeyError, /Did you mean\? "factory_bot"/)
end
it "adds and returns the object registered" do
expect(subject.register(:object_name, registered_object)).to eq registered_object
end