summaryrefslogtreecommitdiff
path: root/spec/ruby/library/monitor/exit_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/monitor/exit_spec.rb')
-rw-r--r--spec/ruby/library/monitor/exit_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/monitor/exit_spec.rb b/spec/ruby/library/monitor/exit_spec.rb
index 952ad9525d..0748a523ac 100644
--- a/spec/ruby/library/monitor/exit_spec.rb
+++ b/spec/ruby/library/monitor/exit_spec.rb
@@ -5,6 +5,6 @@ describe "Monitor#exit" do
it "raises ThreadError when monitor is not entered" do
m = Monitor.new
- -> { m.exit }.should raise_error(ThreadError)
+ -> { m.exit }.should.raise(ThreadError)
end
end