Sha256: 23c9252245b96ece9020cdfb5778d6d4043fcf5d02b8f0bde38ec7048dac6dc1

Contents?: true

Size: 398 Bytes

Versions: 6

Compression:

Stored size: 398 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'spec_helper')

describe GitPivotalTracker::Story do
  describe "#run!" do
    context "given no story ID is found" do
      before do
        stub_git_config
        @subject = GitPivotalTracker::Info.new
        @subject.stub!(:story_id).and_return(nil)
      end

      it "fails" do
        @subject.run!.should == 1
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
git_pivotal_tracker_x-0.1.1 spec/git_pivotal_tracker/info_spec.rb
git_pivotal_tracker-0.0.8 spec/git_pivotal_tracker/info_spec.rb
git_pivotal_tracker-0.0.7 spec/git_pivotal_tracker/info_spec.rb
git_pivotal_tracker-0.0.6 spec/git_pivotal_tracker/info_spec.rb
git_pivotal_tracker-0.0.5 spec/git_pivotal_tracker/info_spec.rb
git_pivotal_tracker-0.0.4 spec/git_pivotal_tracker/info_spec.rb