Sha256: ce0c8c6d02a530e5e253a271d34546bf579b44ad2b58283c0e4cf05082fda8f7

Contents?: true

Size: 733 Bytes

Versions: 8

Compression:

Stored size: 733 Bytes

Contents

require 'spec_helper'

describe StoryPullRequest do

  let(:command) { StoryPullRequest.new }
  before { command.stub(:story_branch).and_return('6283185-tau-manifesto') }
  before do
    command.stub(:origin_uri).and_return('https://github.com/mhartl/foo')
  end
  subject { command }

  its(:cmd) { should =~ /open #{command.uri}/ }
  its(:cmd) { should =~ /git story-push/ }

  describe "command-line command" do
    subject { `bin/git-story-pull-request --debug` }
    it { should =~ /pull\/new/ }
    it { should_not =~ /\.git/ }
    it { should =~ /git story-push/ }

    describe "with a skip option" do
      subject { `bin/git-story-pull-request --skip --debug` }
      it { should_not =~ /git story-push/ }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pivotal-github-0.6.12 spec/commands/story_pull_request_spec.rb
pivotal-github-0.6.11 spec/commands/story_pull_request_spec.rb
pivotal-github-0.6.10 spec/commands/story_pull_request_spec.rb
pivotal-github-0.6.9 spec/commands/story_pull_request_spec.rb
pivotal-github-0.6.8 spec/commands/story_pull_request_spec.rb
pivotal-github-0.6.7 spec/commands/story_pull_request_spec.rb
pivotal-github-0.6.6 spec/commands/story_pull_request_spec.rb
pivotal-github-0.6.5 spec/commands/story_pull_request_spec.rb