Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #63 from Shumkov/patch-1

other_id can be a string
  • Loading branch information...
commit d5e5fb9f0e8d3c5e9323cefcebccf38774091df7 2 parents b32bbe5 + a2347e3
@jasonnoble jasonnoble authored
View
2  lib/pivotal-tracker/story.rb
@@ -39,7 +39,7 @@ def find(param, project_id)
element :labels, String
element :jira_id, Integer
element :jira_url, String
- element :other_id, Integer
+ element :other_id, String
element :integration_id, Integer
element :deadline, DateTime # Only available for Release stories
View
9 spec/pivotal-tracker/story_spec.rb
@@ -185,8 +185,13 @@ def story_for(attrs)
story_for(:labels => "abc")["labels"].should == "abc"
end
- it "should include other_id" do
- story_for(:other_id => 10)["other_id"].should == "10"
+ describe "should include other_id" do
+ it "when passed a string" do
+ story_for(:other_id => "aa10bb")["other_id"].should == "aa10bb"
+ end
+ it "when passed an integer" do
+ story_for(:other_id => 10)["other_id"].should == "10"
+ end
end
it "should include integration_id" do
Please sign in to comment.
Something went wrong with that request. Please try again.