Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Fix last comment restriction return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Potter committed Nov 29, 2012
1 parent 01e96e3 commit 6c9450e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/asana.rb
Expand Up @@ -11,7 +11,7 @@ def receive_push
branch = payload['ref'].split('/').last

branch_restriction = data['restrict_to_branch'].to_s
commit_restriction = data['restrict_to_last_comment'] == "true"
commit_restriction = data['restrict_to_last_comment'] == 1

# check the branch restriction is poplulated and branch is not included
if branch_restriction.length > 0 && branch_restriction.index(branch) == nil
Expand Down
2 changes: 1 addition & 1 deletion test/asana_test.rb
Expand Up @@ -48,7 +48,7 @@ def test_restricted_comment_commit_push
end

svc = service(
{'auth_token' => '0000',"restrict_to_last_comment" => "true"},
{'auth_token' => '0000',"restrict_to_last_comment" => 1},
modified_payload)
svc.receive_push
end
Expand Down

0 comments on commit 6c9450e

Please sign in to comment.