summaryrefslogtreecommitdiff
path: root/spec/ruby/library/coverage/result_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/coverage/result_spec.rb')
-rw-r--r--spec/ruby/library/coverage/result_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/coverage/result_spec.rb b/spec/ruby/library/coverage/result_spec.rb
index 0101eb6a64..2e7d598bb8 100644
--- a/spec/ruby/library/coverage/result_spec.rb
+++ b/spec/ruby/library/coverage/result_spec.rb
@@ -80,7 +80,7 @@ describe 'Coverage.result' do
Coverage.result
-> {
Coverage.result
- }.should raise_error(RuntimeError, 'coverage measurement is not enabled')
+ }.should.raise(RuntimeError, 'coverage measurement is not enabled')
end
it 'second run should give same result' do
@@ -108,7 +108,7 @@ describe 'Coverage.result' do
it 'does not include the file starting coverage since it is not tracked' do
require @config_file.chomp('.rb')
- Coverage.result.should_not include(@config_file)
+ Coverage.result.should_not.include?(@config_file)
end
it 'returns the correct results when eval coverage is enabled' do