Skip to content

Commit 8b62111

Browse files
committed
update test to request with correct headers
1 parent 362b0ae commit 8b62111

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

spec/repository_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@
3939
it "respects the source branch" do
4040
expect(repo.git_ref).to eql("master")
4141
end
42+
end
43+
44+
context "repository information" do
45+
let(:nwo) { "jekyll/jekyll" }
46+
let!(:stub) do
47+
stub_api(
48+
"/repos/#{nwo}/pages",
49+
"repo",
50+
"Accept" => "application/vnd.github.v3+json"
51+
)
52+
end
4253

4354
it "returns the stargazers_count" do
4455
expect(repo.stargazers_count).to eq(22)

0 commit comments

Comments
 (0)