spec/cases/graph_collection_spec.rb in koala-2.2.0rc1 vs spec/cases/graph_collection_spec.rb in koala-2.2.0rc2
- old
+ new
@@ -4,11 +4,12 @@
let(:paging){ {:paging => true} }
before(:each) do
@result = {
"data" => [1, 2, :three],
- "paging" => paging
+ "paging" => paging,
+ "summary" => [3]
}
@api = Koala::Facebook::API.new("123")
@collection = Koala::Facebook::GraphCollection.new(@result, @api)
end
@@ -29,9 +30,13 @@
expect(@collection.methods.map(&:to_sym)).not_to include(:paging=)
end
it "sets paging to results['paging']" do
expect(@collection.paging).to eq(@result["paging"])
+ end
+
+ it "sets summary to results['summary']" do
+ expect(@collection.summary).to eq(@result["summary"])
end
it "sets raw_response to the original results" do
expect(@collection.raw_response).to eq(@result)
end