spec/bearcat/client/users_spec.rb in bearcat-0.9.6 vs spec/bearcat/client/users_spec.rb in bearcat-0.9.7

- old
+ new

@@ -29,9 +29,16 @@ user_avatars = @client.user_avatars(1) user_avatars.count.should == 2 user_avatars.first['type'].should == 'gravatar' end + it "returns a users profile" do + stub_get(@client, "/api/v1/users/1/profile").to_return(json_response("user_profile.json")) + user_profile = @client.user_profile(1) + user_profile["id"].should == 1 + user_profile["time_zone"].should == "America/Denver" + end + describe 'user custom data' do before (:each) do @query = {"ns" => "com.test.app"} end