Class: Producer::Core::Tests::FileContains

Inherits:
Producer::Core::Test show all
Defined in:
lib/producer/core/tests/file_contains.rb

Instance Attribute Summary

Attributes inherited from Producer::Core::Test

#arguments, #env

Instance Method Summary collapse

Methods inherited from Producer::Core::Test

#initialize, #negated?, #pass?

Constructor Details

This class inherits a constructor from Producer::Core::Test

Instance Method Details

#verifyObject



5
6
7
8
# File 'lib/producer/core/tests/file_contains.rb', line 5

def verify
  content = file_content
  content ? content.include?(arguments[1]) : false
end