spec/githu3/team_spec.rb in githu3-0.0.2 vs spec/githu3/team_spec.rb in githu3-0.0.3
- old
+ new
@@ -23,15 +23,15 @@
team.members.length.should == 1
team.members.first.login.should == "octocat"
end
it 'should tell me if a user IS a member of the team' do
- stub_request(:get, "https://api.github.com/teams/1/members/octocat").to_return(:status => 204)
+ stub_request(:get, "#{Githu3::Client::BaseUrl}/teams/1/members/octocat").to_return(:status => 204)
team.member?('octocat').should be_true
end
it 'should tell me if a user IS NOT a member of the team' do
- stub_request(:get, "https://api.github.com/teams/1/members/billevans").to_return(:status => 404)
+ stub_request(:get, "#{Githu3::Client::BaseUrl}/teams/1/members/billevans").to_return(:status => 404)
team.member?('billevans').should be_false
end
end
describe "Getting the team's repos..." do
\ No newline at end of file