spec/githu3/org_spec.rb in githu3-0.0.2 vs spec/githu3/org_spec.rb in githu3-0.0.3

- old
+ new

@@ -22,16 +22,16 @@ github.members.length.should == 1 github.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/orgs/github/members/octocat").to_return(:status => 204) + stub_request(:get, "#{Githu3::Client::BaseUrl}/orgs/github/members/octocat").to_return(:status => 204) github.member?('octocat').should be_true end it 'should tell me if a user IS NOT a member of the org' do - stub_request(:get, "https://api.github.com/orgs/github/members/billevans").to_return(:status => 404) + stub_request(:get, "#{Githu3::Client::BaseUrl}/orgs/github/members/billevans").to_return(:status => 404) github.member?('billevans').should be_false end it "should get its teams" do stub_get "/orgs/github/teams", "repos/teams" @@ -48,15 +48,15 @@ github.public_members.length.should == 1 github.public_members.first.login.should == "octocat" end it 'should tell me if a user IS a public_member of the team' do - stub_request(:get, "https://api.github.com/orgs/github/public_members/octocat").to_return(:status => 204) + stub_request(:get, "#{Githu3::Client::BaseUrl}/orgs/github/public_members/octocat").to_return(:status => 204) github.public_member?('octocat').should be_true end it 'should tell me if a user IS NOT a public_member of the team' do - stub_request(:get, "https://api.github.com/orgs/github/public_members/billevans").to_return(:status => 404) + stub_request(:get, "#{Githu3::Client::BaseUrl}/orgs/github/public_members/billevans").to_return(:status => 404) github.public_member?('billevans').should be_false end end describe "Getting the org's repos" do \ No newline at end of file