Skip to content

Commit

Permalink
Merge pull request jsmestad#63 from Shumkov/patch-1
Browse files Browse the repository at this point in the history
other_id can be a string
  • Loading branch information
jasonnoble committed Jan 30, 2013
2 parents b32bbe5 + a2347e3 commit d5e5fb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pivotal-tracker/story.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 7 additions & 2 deletions spec/pivotal-tracker/story_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5e5fb9

Please sign in to comment.