Sha256: da0e94187885294605f3e107f8bfa169c7af5a83643fb9d0ff663ea83a4dc959

Contents?: true

Size: 657 Bytes

Versions: 3

Compression:

Stored size: 657 Bytes

Contents

# coding: utf-8
require File.expand_path('../../../spec_helper', __FILE__)

describe Agig::Session do
  before do
    @session = described_class.new('localhost', nil, nil)
  end

  describe '#reachable_url_for' do
    subject { @session.reachable_url_for(latest_comment_url) }

    context 'When "https://api.github.com/repos/fastladder/fastladder/pulls/170" given' do
      before do
        @session.stub_chain(:client, :issue_comments).and_return([])
      end

      let(:latest_comment_url) { 'https://api.github.com/repos/fastladder/fastladder/pulls/170' }
      it { should eq('https://github.com/fastladder/fastladder/pull/170') }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
agig-0.1.5 spec/lib/agig/session_spec.rb
agig-0.1.4 spec/lib/agig/session_spec.rb
agig-0.1.3 spec/lib/agig/session_spec.rb