Sha256: fde8839ca22ca0577d272fdd0d16aeec5cd5593098261a5b48cc60190e911b72

Contents?: true

Size: 841 Bytes

Versions: 32

Compression:

Stored size: 841 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 "should list 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)
      events.first.event.should == "mentioned"
      events.last.actor.login.should == "ctshryock"
    end

    it "should get 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)
      events.actor.login.should == "sferik"
      events.event.should == "closed"
    end

  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
octokit-1.17.0 spec/octokit/client/issue_events_spec.rb
octokit-1.15.1 spec/octokit/client/issue_events_spec.rb
octokit-1.15.0 spec/octokit/client/issue_events_spec.rb
octokit-1.14.0 spec/octokit/client/issue_events_spec.rb
octokit-1.13.0 spec/octokit/client/issue_events_spec.rb
octokit-1.12.0 spec/octokit/client/issue_events_spec.rb
octokit-1.11.0 spec/octokit/client/issue_events_spec.rb
octokit-1.10.0 spec/octokit/client/issue_events_spec.rb
octokit-1.9.4 spec/octokit/client/issue_events_spec.rb
octokit-1.9.3 spec/octokit/client/issue_events_spec.rb
octokit-1.9.2 spec/octokit/client/issue_events_spec.rb
octokit-1.9.1 spec/octokit/client/issue_events_spec.rb
octokit-1.8.1 spec/octokit/client/issue_events_spec.rb
octokit-1.8.0 spec/octokit/client/issue_events_spec.rb
octokit-1.7.0 spec/octokit/client/issue_events_spec.rb
octokit-1.6.1 spec/octokit/client/issue_events_spec.rb
octokit-1.6.0 spec/octokit/client/issue_events_spec.rb
octokit-1.5.0 spec/octokit/client/issue_events_spec.rb
octokit-1.4.0 spec/octokit/client/issue_events_spec.rb
octokit-1.3.0 spec/octokit/client/issue_events_spec.rb