spec/bearcat/client/groups_spec.rb in bearcat-1.2.3 vs spec/bearcat/client/groups_spec.rb in bearcat-1.2.4

- old
+ new

@@ -11,6 +11,13 @@ groups.count.should == 2 groups.first['name'].should == 'group 1' groups.last['id'].should == 4 end + it "returns account groups" do + stub_get(@client, "/api/v1/accounts/1/groups").to_return(json_response("account_groups.json")) + groups = @client.account_groups(1) + groups.count.should == 2 + groups.first['name'].should == '2010' + groups.last['id'].should == 3 + end end \ No newline at end of file