class Producer::Core::Tests::FileContains

Public Instance Methods

verify() click to toggle source
# File lib/producer/core/tests/file_contains.rb, line 5
def verify
  content = file_content
  content ? content.include?(arguments[1]) : false
end

Private Instance Methods

file_content() click to toggle source
# File lib/producer/core/tests/file_contains.rb, line 12
def file_content
  fs.file_read arguments[0]
end