diff options
Diffstat (limited to 'spec/ruby/core/env/key_spec.rb')
| -rw-r--r-- | spec/ruby/core/env/key_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/env/key_spec.rb b/spec/ruby/core/env/key_spec.rb index cf70286409..677cf35216 100644 --- a/spec/ruby/core/env/key_spec.rb +++ b/spec/ruby/core/env/key_spec.rb @@ -21,7 +21,7 @@ describe "ENV.key" do it "returns nil if the passed value is not found" do ENV.delete("foo") - ENV.key("foo").should be_nil + ENV.key("foo").should == nil end it "coerces the key element with #to_str" do @@ -34,6 +34,6 @@ describe "ENV.key" do it "raises TypeError if the argument is not a String and does not respond to #to_str" do -> { ENV.key(Object.new) - }.should raise_error(TypeError, "no implicit conversion of Object into String") + }.should.raise(TypeError, "no implicit conversion of Object into String") end end |
