git_pivotal_tracker 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in alder.gemspec
3
+ # Specify your gem's dependencies in git_pivotal_tracker.gemspec
4
4
  gemspec
@@ -5,7 +5,7 @@ module GitPivotalTracker
5
5
  return 1 if super
6
6
 
7
7
  unless story_id
8
- put "Branch name must contain a Pivotal Tracker story id"
8
+ puts "Branch name must contain a Pivotal Tracker story id"
9
9
  return 1
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module GitPivotalTracker
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -0,0 +1,18 @@
1
+ require File.join(File.dirname(__FILE__), '..', 'spec_helper')
2
+
3
+ describe GitPivotalTracker::Story do
4
+ describe "#run!" do
5
+ context "given no story ID is found" do
6
+ before do
7
+ stub_git_config
8
+ @subject = GitPivotalTracker::Info.new
9
+ @subject.stub!(:story_id).and_return(nil)
10
+ end
11
+
12
+ it "fails" do
13
+ @subject.run!.should == 1
14
+ end
15
+ end
16
+ end
17
+ end
18
+
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: git_pivotal_tracker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Lindsey
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-17 00:00:00 -07:00
13
+ date: 2011-07-19 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -101,6 +101,7 @@ files:
101
101
  - spec/fixtures/story.xml
102
102
  - spec/git_pivotal_tracker/base_spec.rb
103
103
  - spec/git_pivotal_tracker/finish_spec.rb
104
+ - spec/git_pivotal_tracker/info_spec.rb
104
105
  - spec/git_pivotal_tracker/story_spec.rb
105
106
  - spec/spec_helper.rb
106
107
  has_rdoc: true
@@ -140,5 +141,6 @@ test_files:
140
141
  - spec/fixtures/story.xml
141
142
  - spec/git_pivotal_tracker/base_spec.rb
142
143
  - spec/git_pivotal_tracker/finish_spec.rb
144
+ - spec/git_pivotal_tracker/info_spec.rb
143
145
  - spec/git_pivotal_tracker/story_spec.rb
144
146
  - spec/spec_helper.rb