spec/collection_spec.rb in conglomerate-0.8.1 vs spec/collection_spec.rb in conglomerate-0.9.0
- old
+ new
@@ -35,6 +35,18 @@
collection.queries << query
expect(Conglomerate.serialize(collection)["queries"]).to include(Conglomerate.serialize(query))
end
end
+
+ context "commands" do
+ it "serializes commands correctly" do
+ command = Conglomerate::Command.new(
+ :href => "http://this.is.a.command",
+ :rel => "Something"
+ )
+
+ collection.commands << command
+ expect(Conglomerate.serialize(collection)["commands"]).to include(Conglomerate.serialize(command))
+ end
+ end
end