Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(HC-98) Update specs to reflect new output format #46

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions spec/unit/puppet/provider/conf_setting/ruby_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,23 @@ def validate_file(expected_content,tmp = tmpfile)
<<-EOS
test_key_1: [
{
"bar" : "barvalue",
"foo" : "foovalue",
"master" : true
"bar": "barvalue",
"foo": "foovalue",
"master": true
}
,
{
"baz" : "bazvalue",
"foo" : "foovalue2",
"url" : "http://192.168.1.1:8080"
"baz": "bazvalue",
"foo": "foovalue2",
"url": "http://192.168.1.1:8080"
}
,
{
"foo" : "foovalue3"
"foo": "foovalue3"
}
,
{
"bar" : "barvalue3"
"bar": "barvalue3"
}

]
Expand All @@ -95,15 +95,15 @@ def validate_file(expected_content,tmp = tmpfile)
<<-EOS
test_key_1: [
{
"bar" : "barvalue",
"foo" : "foovalue",
"master" : true
"bar": "barvalue",
"foo": "foovalue",
"master": true
}
,
{
"baz" : "bazvalue",
"foo" : "foovalue2",
"url" : "http://192.168.1.1:8080"
"baz": "bazvalue",
"foo": "foovalue2",
"url": "http://192.168.1.1:8080"
}

]
Expand Down Expand Up @@ -139,11 +139,11 @@ def validate_file(expected_content,tmp = tmpfile)
foo: foovalue3
}
]
test_key_2 : [
test_key_2: [

{

"foo" : "foovalue3"
"foo": "foovalue3"

}

Expand Down Expand Up @@ -187,7 +187,7 @@ def validate_file(expected_content,tmp = tmpfile)
]
test_key_2: [
{
"foo" : "foovalue3"
"foo": "foovalue3"
}

]
Expand Down Expand Up @@ -282,7 +282,7 @@ def validate_file(expected_content,tmp = tmpfile)

bar: barvalue
master: true
yahoo : "yippee"
yahoo: "yippee"
}

test_key_2: {
Expand Down Expand Up @@ -409,8 +409,8 @@ def validate_file(expected_content,tmp = tmpfile)
#another comment
// yet another comment
foo: bar
test_key_4 : {
huzzah : "shazaam"
test_key_4: {
huzzah: "shazaam"
}
EOS
)
Expand All @@ -422,7 +422,7 @@ def validate_file(expected_content,tmp = tmpfile)
provider = described_class.new(resource)
expect(provider.exists?).to be false
provider.create
validate_file("test_key_1 : {\n setting1 : \"helloworld\"\n}\n", emptyfile)
validate_file("test_key_1: {\n setting1: \"helloworld\"\n}\n", emptyfile)
end

it "should be able to handle variables of boolean type" do
Expand Down Expand Up @@ -553,7 +553,7 @@ def validate_file(expected_content,tmp = tmpfile)
# yet another comment
foo="http://192.168.1.1:8080"
}
bar : "yippee"
bar: "yippee"
EOS
)
end
Expand Down Expand Up @@ -603,7 +603,7 @@ def validate_file(expected_content,tmp = tmpfile)
"test_key_2" {
foo="http://192.168.1.1:8080"
}
foo : "yippee"
foo: "yippee"
EOS
)
end
Expand Down