diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/config_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/config_spec.rb b/spec/config_spec.rb index db91f7cb..f1cf5ea6 100644 --- a/spec/config_spec.rb +++ b/spec/config_spec.rb @@ -150,8 +150,8 @@ RSpec.describe Pry::Config do end context "when invoked method is not an option" do - it "raises NoMethodError" do - expect { subject.foo }.to raise_error(NoMethodError) + it "returns nil" do + expect(subject.foo).to be_nil end end |