Sha256: c672dd3745f2e5224ab2ce397fd1b90549e33992dfea1bfc302175d1e08ba61b
Contents?: true
Size: 849 Bytes
Versions: 2
Compression:
Stored size: 849 Bytes
Contents
# -*- encoding: utf-8 -*- require 'helper' describe Octokit::Client::Issues do before do @client = Octokit::Client.new(:login => 'sferik') end describe ".issue_events" do it "lists events for an issue" do stub_get("/repos/pengwynn/octokit/issues/38/events"). to_return(:body => fixture("v3/issue_events.json")) events = @client.issue_events("pengwynn/octokit", 38) expect(events.first.event).to eq("mentioned") expect(events.last.actor.login).to eq("ctshryock") end it "gets a single event" do stub_get("/repos/pengwynn/octokit/issues/events/3094334"). to_return(:body => fixture("v3/issue_event.json")) events = @client.issue_event("pengwynn/octokit", 3094334) expect(events.actor.login).to eq("sferik") expect(events.event).to eq("closed") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octokit-1.18.0 | spec/octokit/client/issue_events_spec.rb |
octokit-1.17.1 | spec/octokit/client/issue_events_spec.rb |