spec/githu3/client_spec.rb in githu3-0.0.2 vs spec/githu3/client_spec.rb in githu3-0.0.3
- old
+ new
@@ -40,15 +40,15 @@
@client.repos(:type => "public").length.should == 5
@client.repos(:type => "public").first.name.should == "futon4mongo"
end
it 'should tell me if i am following someone else...' do
- stub_request(:get, "https://api.github.com/user/following/billevans").to_return(:status => 204)
+ stub_request(:get, "#{Githu3::Client::BaseUrl}/user/following/billevans").to_return(:status => 204)
@client.following?('billevans').should be_true
end
it 'should tell me if i am NOT following someone else...' do
- stub_request(:get, "https://api.github.com/user/following/mildesdavis").to_return(:status => 404)
+ stub_request(:get, "#{Githu3::Client::BaseUrl}/user/following/mildesdavis").to_return(:status => 404)
@client.following?('mildesdavis').should be_false
end
it "should list my followers" do
stub_get "/user/followers", "users/followers"