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
1 changed files with 0 additions and 6 deletions

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