Sha256: 2816bb624fe2d6fb9d9ba961779f48a5ee4b402935c38fc75e6272a7a3d0bf04

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

require 'spec_helper'

describe ProjectOpen do

  let(:command) { ProjectOpen.new }

  it "should have a working project_url" do
    expect { command.project_url }.not_to raise_error
  end

  context "with stubbed-out project_id" do
    let(:project_id) { '6283185' }
    before { command.stub(:project_id).and_return(project_id) }
    let(:uri) { "https://www.pivotaltracker.com/projects/#{project_id}" }
    subject { command }

    its(:cmd) { should eq "open #{uri}" }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pivotal-github-1.2.2 spec/commands/project_open_spec.rb
pivotal-github-1.2.0 spec/commands/project_open_spec.rb