From 3a4d6f489ccd3bb58674e470c3bfaad642888975 Mon Sep 17 00:00:00 2001 From: Daniel Colson Date: Sun, 16 Dec 2018 22:48:06 -0500 Subject: [PATCH] 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. --- spec/factory_bot/registry_spec.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spec/factory_bot/registry_spec.rb b/spec/factory_bot/registry_spec.rb index 1825775..43819f6 100644 --- a/spec/factory_bot/registry_spec.rb +++ b/spec/factory_bot/registry_spec.rb @@ -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