Permalink
Browse files

Make duplicate key check test more robust

  • Loading branch information...
Amit Gupta and Sean Sweda
Amit Gupta and Sean Sweda committed Mar 29, 2013
1 parent 0bfe150 commit 1b0e62fc0fd110940e623b4c270278c28a3083ac
Showing with 4 additions and 8 deletions.
  1. +4 −8 bosh_cli/spec/unit/yaml_helper_spec.rb
@@ -6,15 +6,11 @@
subject { Bosh::Cli::YamlHelper }
describe "#check_duplicate_keys" do
- context "when yaml contains anchors" do
+ context "when YAML contains aliases and anchors" do
it "does not raise an error" do
- subject.check_duplicate_keys("key1: &key1")
- end
- end
-
- context "when yaml contains aliases" do
- it "does not raise an error" do
- subject.check_duplicate_keys("key1: *key1")
+ expect {
+ subject.check_duplicate_keys("ccdb: &ccdb\n db_scheme: mysql\nccdb_ng: *ccdb")
+ }.not_to raise_error
end
end
end

0 comments on commit 1b0e62f

Please sign in to comment.