Sha256: fbf97c980377dea025b78730b355c192e405d2a648e8dbd809081f3c3a630a13

Contents?: true

Size: 766 Bytes

Versions: 2

Compression:

Stored size: 766 Bytes

Contents

require 'spec_helper'

describe StoryPullRequest do

  let(:command) { StoryPullRequest.new }
  before { command.stub(:story_branch).and_return('62831853-tau-manifesto') }
  before do
    command.stub(:remote_location).
            and_return('https://github.com/mhartl/foo')
    command.stub(:delivered_ids).and_return(['62831853', '31415926'])
    command.stub(:write_pr_file).and_return('')
  end
  subject { command }

  its(:cmd) { should match /git pull-request/ }
  its(:commit_message) do
    should include '[Delivers #62831853]'
    should include '[Delivers #31415926]'
  end

  describe "command-line command" do
    subject { `bin/git-story-pull-request --debug` }
    it { should_not match /\.git/ }
    it { should match /git pull-request/ }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pivotal-github-1.0.8 spec/commands/story_pull_request_spec.rb
pivotal-github-1.0.7 spec/commands/story_pull_request_spec.rb