test/model/event_set_test.rb in fauna-0.2.2 vs test/model/event_set_test.rb in fauna-0.2.3
- old
+ new
@@ -33,6 +33,14 @@
@model.posts.add(Post.create(:body => "Hello"))
page = @model.posts.page
assert_equal page.events.size, 1
@model.posts.remove(page.events[0].resource)
end
+
+ def test_event_set_resources
+ post = Post.create(:body => "Hello")
+ @model.posts.add(post)
+ assert_equal [post], @model.posts.resources
+ assert_equal [post], @model.posts.creates.resources
+ assert_equal [post], @model.posts.updates.resources
+ end
end