Sha256: e3fbb122132f41236c400fc5db3193070b4e3a6f6eec2a41c5256c0d045665f0

Contents?: true

Size: 610 Bytes

Versions: 2

Compression:

Stored size: 610 Bytes

Contents

require 'spec_helper'

describe Command do
  let(:command) { Command.new }
  before { command.stub(:story_branch).and_return('6283185-tau-manifesto') }
  subject { command }

  it { should respond_to(:cmd) }
  it { should respond_to(:args) }
  it { should respond_to(:options) }
  it { should respond_to(:parse) }
  it { should respond_to(:story_ids) }
  its(:story_ids) { should eq ['6283185']}

  describe "branches with multiple stories" do
    before do
      command.stub(:story_branch).and_return('6283185-tau-manifesto-3141592')
    end
    its(:story_ids) { should eq ['6283185', '3141592'] }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pivotal-github-0.8.0 spec/commands/command_spec.rb
pivotal-github-0.7.0 spec/commands/command_spec.rb