-
-
Notifications
You must be signed in to change notification settings - Fork 389
Added a basic spec for counts #219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
result.should == { | ||
@class_file => [ | ||
nil, nil, 1, nil, nil, 1, nil, nil, 0, nil, nil, nil, nil, nil, nil, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is line 9 executed 0 times?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is in a method that is never called.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, I thought it was still the class body.
Pulled helper method to separate SpecHelper module
Used raise_error helper instead of customer begin...rescue
|
||
result.should == { @config_file => [1, 1, 1] } | ||
end | ||
|
||
it 'should list coverage for the required file starting coverage' do | ||
require @config_file.chomp('.rb') | ||
result = Coverage.result | ||
result = Coverage.result.select { |k, v| v.any? || k == @config_file } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just do sth like Coverage.result[@config_file].should == []
here.
Getting pretty nice 😃 |
Thank you for these nice Coverage specs, merged! |
The specs fail now since keys accumulate in the result hash. Considering filing a bug against Ruby.