summaryrefslogtreecommitdiff
path: root/spec/ruby/library/coverage/supported_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/coverage/supported_spec.rb')
-rw-r--r--spec/ruby/library/coverage/supported_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/coverage/supported_spec.rb b/spec/ruby/library/coverage/supported_spec.rb
index 9226548c1f..fcf8a76d79 100644
--- a/spec/ruby/library/coverage/supported_spec.rb
+++ b/spec/ruby/library/coverage/supported_spec.rb
@@ -17,14 +17,14 @@ describe "Coverage.supported?" do
it "raise TypeError if argument is not Symbol" do
-> {
Coverage.supported?("lines")
- }.should raise_error(TypeError, "wrong argument type String (expected Symbol)")
+ }.should.raise(TypeError, "wrong argument type String (expected Symbol)")
-> {
Coverage.supported?([])
- }.should raise_error(TypeError, "wrong argument type Array (expected Symbol)")
+ }.should.raise(TypeError, "wrong argument type Array (expected Symbol)")
-> {
Coverage.supported?(1)
- }.should raise_error(TypeError, "wrong argument type Integer (expected Symbol)")
+ }.should.raise(TypeError, "wrong argument type Integer (expected Symbol)")
end
end