Sha256: 0777c61bd6a7d8246d33a8b2e61d22bc7531df47b23626115897f92870b38d5e
Contents?: true
Size: 986 Bytes
Versions: 11
Compression:
Stored size: 986 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(:short_message) { should include command.story_branch } its(:long_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
11 entries across 11 versions & 1 rubygems