Class: Producer::Core::Tests::YAMLEq
- Inherits:
-
Producer::Core::Test
- Object
- Producer::Core::Test
- Producer::Core::Tests::YAMLEq
- Defined in:
- lib/producer/core/tests/yaml_eq.rb
Instance Attribute Summary
Attributes inherited from Producer::Core::Test
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
#verify ⇒ Object
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 |