spec/acceptance/environment_resource_spec.rb in ridley-0.1.0 vs spec/acceptance/environment_resource_spec.rb in ridley-0.2.0
- old
+ new
@@ -122,13 +122,13 @@
end
end
it "saves a new set of 'default_attributes'" do
target.default_attributes = default_attributes = {
- attribute_one: "val_one",
- nested: {
- other: "val"
+ "attribute_one" => "val_one",
+ "nested" => {
+ "other" => "val"
}
}
connection.sync do
environment.update(target)
@@ -138,13 +138,13 @@
end
end
it "saves a new set of 'override_attributes'" do
target.override_attributes = override_attributes = {
- attribute_one: "val",
- nested: {
- other: "val"
+ "attribute_one" => "val_one",
+ "nested" => {
+ "other" => "val"
}
}
connection.sync do
environment.update(target)
@@ -154,11 +154,11 @@
end
end
it "saves a new set of 'cookbook_versions'" do
target.cookbook_versions = cookbook_versions = {
- nginx: "1.2.0",
- tomcat: "1.3.0"
+ "nginx" => "1.2.0",
+ "tomcat" => "1.3.0"
}
connection.sync do
environment.update(target)
obj = environment.find(target)