test/test_helper.rb in deadweight-0.1.1 vs test/test_helper.rb in deadweight-0.1.2
- old
+ new
@@ -26,16 +26,16 @@
assert_does_not_report_used_selectors(selectors)
end
def assert_reports_unused_selectors(output)
UNUSED_SELECTORS.each do |s|
- assert output.include?(s)
+ assert output.include?(s), "output is missing #{s.inspect}:\n#{output}"
end
end
def assert_does_not_report_used_selectors(output)
USED_SELECTORS.each do |s|
- assert !output.include?(s)
+ assert !output.include?(s), "output should not contain #{s.inspect}:\n#{output}"
end
end
def default_settings(dw)
dw.log_file = 'test.log'