Skip to content
Browse files

Make that a string

  • Loading branch information...
1 parent 6c9450e commit 532da3111d92de87b583096c8ab074fad95f434b Nathan Potter committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 services/asana.rb
  2. +1 −1 test/asana_test.rb
View
2 services/asana.rb
@@ -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'] == 1
+ 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
View
2 test/asana_test.rb
@@ -48,7 +48,7 @@ def test_restricted_comment_commit_push
end
svc = service(
- {'auth_token' => '0000',"restrict_to_last_comment" => 1},
+ {'auth_token' => '0000',"restrict_to_last_comment" => "1"},
modified_payload)
svc.receive_push
end

0 comments on commit 532da31

Please sign in to comment.
Something went wrong with that request. Please try again.