lib/code_spec/matchers/have_content.rb in code-spec-0.2.8 vs lib/code_spec/matchers/have_content.rb in code-spec-0.2.9
- old
+ new
@@ -12,14 +12,14 @@
yield file.read if block
true
end
def failure_message
- "Expected the file #{file_path} to have content"
+ display "Expected the file #{file_path} to have content"
end
def negative_failure_message
- "Did not expect the file #{file_path} to have content"
+ display "Did not expect the file #{file_path} to have content"
end
end
def have_content
HaveContent.new