spec/bearcat/client/groups_spec.rb in bearcat-1.2.12 vs spec/bearcat/client/groups_spec.rb in bearcat-1.2.13

- old
+ new

@@ -19,9 +19,17 @@ groups.count.should == 2 groups.first['name'].should == '2010' groups.last['id'].should == 3 end + it "returns group category groups" do + stub_get(@client, "/api/v1/group_categories/1/groups").to_return(json_response("group_category_groups.json")) + groups = @client.category_groups(1) + groups.count.should == 1 + groups.first['name'].should == 'test group in category' + groups.first['id'].should == 94 + end + it "returns a single group" do stub_get(@client, "/api/v1/groups/3").to_return(json_response("group.json")) group = @client.group(3) group['name'].should == 'group 1' group['id'].should == 3 \ No newline at end of file