features/step_definitions/html_steps.rb in simplecov-0.7.1 vs features/step_definitions/html_steps.rb in simplecov-0.8.0.pre
- old
+ new
@@ -33,10 +33,10 @@
Then /^I should see the source files:$/ do |table|
expected_files = table.hashes
expected_files.length.should == available_source_files.count
# Find all filenames and their coverage present in coverage report
- files = available_source_files.map {|f| {"name" => f.find('h3').text, "coverage" => f.find('.header span').text} }
+ files = available_source_files.map {|f| {"name" => f.find('h3').text, "coverage" => f.find('h4 > span').text} }
files.sort_by {|hsh| hsh["name"] }.should == expected_files.sort_by {|hsh| hsh["name"] }
end
Then /^there should be (\d+) skipped lines in the source files$/ do |expected_count|