Class: Producer::Core::Tests::YAMLEq

Inherits:
Producer::Core::Test show all
Defined in:
lib/producer/core/tests/yaml_eq.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/yaml_eq.rb', line 5

def verify
  return false unless file_content = fs.file_read(arguments.first)
  YAML.load(file_content) == arguments[1]
end