Implement `yaml_eq' condition keyword
This commit is contained in:
12
lib/producer/core/tests/yaml_eq.rb
Normal file
12
lib/producer/core/tests/yaml_eq.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
module Producer
|
||||
module Core
|
||||
module Tests
|
||||
class YAMLEq < Test
|
||||
def verify
|
||||
return false unless file_content = fs.file_read(arguments.first)
|
||||
YAML.load(file_content) == arguments[1]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user