spec/relaxo/model/attribute_spec.rb in relaxo-model-0.17.2 vs spec/relaxo/model/attribute_spec.rb in relaxo-model-0.17.3
- old
+ new
@@ -40,9 +40,11 @@
model = Aggregate.create(database.current,
array_value: [1, 2, 3],
hash_value: {x: 10, y: 20}
)
+ expect(model).to be_changed(:array_value)
+
database.commit(message: "Adding test model") do |dataset|
model.save(dataset)
end
# Force all attributes to be reloaded from the object store: