summaryrefslogtreecommitdiff
path: root/spec/ruby/core/env/shared/include.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/env/shared/include.rb')
-rw-r--r--spec/ruby/core/env/shared/include.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/env/shared/include.rb b/spec/ruby/core/env/shared/include.rb
index 70aa555301..ceca02e3eb 100644
--- a/spec/ruby/core/env/shared/include.rb
+++ b/spec/ruby/core/env/shared/include.rb
@@ -25,6 +25,6 @@ describe :env_include, shared: true do
end
it "raises TypeError if the argument is not a String and does not respond to #to_str" do
- -> { ENV.send(@method, Object.new) }.should raise_error(TypeError, "no implicit conversion of Object into String")
+ -> { ENV.send(@method, Object.new) }.should.raise(TypeError, "no implicit conversion of Object into String")
end
end