spec/acceptance/node_resource_spec.rb in ridley-0.1.0 vs spec/acceptance/node_resource_spec.rb in ridley-0.2.0
- old
+ new
@@ -129,13 +129,13 @@
connection.node.update(target).should eql(target)
end
it "saves a new set of 'normal' attributes" do
target.normal = normal = {
- attribute_one: "value_one",
- nested: {
- other: "val"
+ "attribute_one" => "value_one",
+ "nested" => {
+ "other" => "val"
}
}
connection.sync do
node.update(target)
@@ -145,13 +145,13 @@
end
end
it "saves a new set of 'default' attributes" do
target.default = defaults = {
- attribute_one: "val_one",
- nested: {
- other: "val"
+ "attribute_one" => "val_one",
+ "nested" => {
+ "other" => "val"
}
}
connection.sync do
node.update(target)
@@ -161,13 +161,13 @@
end
end
it "saves a new set of 'automatic' attributes" do
target.automatic = automatics = {
- attribute_one: "val_one",
- nested: {
- other: "val"
+ "attribute_one" => "val_one",
+ "nested" => {
+ "other" => "val"
}
}
connection.sync do
node.update(target)
@@ -177,12 +177,12 @@
end
end
it "saves a new set of 'override' attributes" do
target.override = overrides = {
- attribute_one: "val_one",
- nested: {
- other: "val"
+ "attribute_one" => "val_one",
+ "nested" => {
+ "other" => "val"
}
}
connection.sync do
node.update(target)