Sha256: 097e5edd77e32a975a95ca672cacd32c641720fcd3b7a15950da2933bdcb3933
Contents?: true
Size: 945 Bytes
Versions: 1
Compression:
Stored size: 945 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(:remote_location). and_return('https://github.com/mhartl/foo') end subject { command } its(:cmd) { should =~ /git pull-request/ } describe 'origin uri parsing' do let(:correct_origin) { 'https://github.com/mhartl/foo' } subject { command.send :origin_uri } context 'https protocol' do it { should eq correct_origin } end context 'git protocol' do before do command.stub(:remote_location). and_return('git@github.com:mhartl/foo') end it { should eq correct_origin } end end describe "command-line command" do subject { `bin/git-story-pull-request --debug` } it { should_not =~ /\.git/ } it { should =~ /git pull-request/ } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pivotal-github-0.8.0 | spec/commands/story_pull_request_spec.rb |