Sha256: 36fcc1fc5abafaaaea7e472daf7f4acb2454908a2f6a6cfd62fa476a6eac7dcc
Contents?: true
Size: 926 Bytes
Versions: 2
Compression:
Stored size: 926 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 "base branch override" do let(:command) { StoryPullRequest.new(['-b', 'development']) } its(:base_branch) { should eq 'development' } 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.10 | spec/commands/story_pull_request_spec.rb |
pivotal-github-1.0.9 | spec/commands/story_pull_request_spec.rb |