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:
parent
b86ec136b6
commit
3a4d6f489c
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue