Skip to content

Commit

Permalink
Correctly converting mail_to env var to an array of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Fish committed May 1, 2014
1 parent 822b810 commit d9d15ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/yolo/tasks/ios/release.rb
Expand Up @@ -42,6 +42,7 @@ def mail_to

if !mail_to
mail_to = ENV['YOLO_RELEASE_MAIL_TO']
mail_to = mail_to.split(",")
end

return mail_to
Expand Down
2 changes: 1 addition & 1 deletion spec/tasks/ios/release_spec.rb
Expand Up @@ -201,7 +201,7 @@
it "should use the mail_to env var if no config is set" do
mail_to = "TEST_MAIL_TO"
ENV['YOLO_RELEASE_MAIL_TO'] = mail_to
@release.mail_to.should eq(mail_to)
@release.mail_to.should eq([mail_to])
end

it "should use the mail_to if it is set" do
Expand Down

0 comments on commit d9d15ad

Please sign in to comment.