Sha256: 26272f3e99d013129c84975f5d2e92593d45bb8d64cf43905bc322ef3a2ac40e

Contents?: true

Size: 462 Bytes

Versions: 19

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

describe StoryOpen do

  let(:command) { StoryOpen.new }
  let(:uri) { "https://www.pivotaltracker.com/story/show/#{command.story_id}" }
  before { command.stub(:story_branch).and_return('6283185-tau-manifesto') }
  subject { command }

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

  describe "command-line command" do
    subject { `bin/story-open --debug` }
    it { should =~ /open https:\/\/www.pivotaltracker.com\/story\/show/ }
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pivotal-github-0.6.14 spec/commands/story_open_spec.rb
pivotal-github-0.6.12 spec/commands/story_open_spec.rb
pivotal-github-0.6.11 spec/commands/story_open_spec.rb
pivotal-github-0.6.10 spec/commands/story_open_spec.rb
pivotal-github-0.6.9 spec/commands/story_open_spec.rb
pivotal-github-0.6.8 spec/commands/story_open_spec.rb
pivotal-github-0.6.7 spec/commands/story_open_spec.rb
pivotal-github-0.6.6 spec/commands/story_open_spec.rb
pivotal-github-0.6.5 spec/commands/story_open_spec.rb
pivotal-github-0.6.4 spec/commands/story_open_spec.rb
pivotal-github-0.6.3 spec/commands/story_open_spec.rb
pivotal-github-0.6.2 spec/commands/story_open_spec.rb
pivotal-github-0.6.1 spec/commands/story_open_spec.rb
pivotal-github-0.6.0 spec/commands/story_open_spec.rb
pivotal-github-0.5.6 spec/commands/story_open_spec.rb
pivotal-github-0.5.5 spec/commands/story_open_spec.rb
pivotal-github-0.5.4 spec/commands/story_open_spec.rb
pivotal-github-0.5.3 spec/commands/story_open_spec.rb
pivotal-github-0.5.2 spec/commands/story_open_spec.rb