Skip to content
Snippets Groups Projects
Commit 69905c4e authored by Eric Franz's avatar Eric Franz
Browse files

refactor

parent 9174b8c4
No related branches found
Tags v0.10.1
No related merge requests found
......@@ -73,6 +73,13 @@ documentation: |
assert_invalid_manifest_has_exception manifest, AweSim::Manifest::InvalidContentError
end
def assert_all_mainfest_attrs_are_empty_strs(manifest)
assert_equal "", manifest.provider
assert_equal "", manifest.name
assert_equal "", manifest.description
assert_equal "", manifest.documentation
end
def test_manifest_with_empty_fields
yaml = %q(---
provider:
......@@ -83,22 +90,13 @@ documentation:
manifest = AweSim::Manifest.load_from_string(yaml)
assert manifest.valid?
assert manifest.exist?
assert_equal "", manifest.provider
assert_equal "", manifest.name
assert_equal "", manifest.description
assert_equal "", manifest.documentation
assert_all_mainfest_attrs_are_empty_strs(manifest)
manifest = AweSim::MissingManifest.new({})
assert_equal "", manifest.provider
assert_equal "", manifest.name
assert_equal "", manifest.description
assert_equal "", manifest.documentation
assert_all_mainfest_attrs_are_empty_strs(manifest)
manifest = AweSim::InvalidManifest.new(nil)
assert_equal "", manifest.provider
assert_equal "", manifest.name
assert_equal "", manifest.description
assert_equal "", manifest.documentation
assert_all_mainfest_attrs_are_empty_strs(manifest)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment