summaryrefslogtreecommitdiff
path: root/spec/ruby/core/binding/dup_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/binding/dup_spec.rb')
-rw-r--r--spec/ruby/core/binding/dup_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/binding/dup_spec.rb b/spec/ruby/core/binding/dup_spec.rb
index 4eff66bd9a..f5f0c72d5d 100644
--- a/spec/ruby/core/binding/dup_spec.rb
+++ b/spec/ruby/core/binding/dup_spec.rb
@@ -21,7 +21,7 @@ describe "Binding#dup" do
eval("a", bind2).should == 2
eval("b = 2", bind2)
- -> { eval("b", bind1) }.should raise_error(NameError)
+ -> { eval("b", bind1) }.should.raise(NameError)
eval("b", bind2).should == 2
bind1.local_variables.sort.should == [:a, :bind1, :bind2]