Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding mails_for_tasks in /config

  • Loading branch information...
commit 91501f9bb30f6a2830c3e79c2945128980e0cc7f 1 parent 09f7bf7
@archiloque archiloque authored
Showing with 3 additions and 1 deletion.
  1. +2 −1  lib/httpcron/api_server.rb
  2. +1 −0  test/misc_test.rb
View
3  lib/httpcron/api_server.rb
@@ -27,7 +27,8 @@ def current_user=(user)
:default_timeout => Config.default_timeout,
:max_timeout => Config.max_timeout,
:max_pagination_limit => Config.max_pagination_limit,
- :valid_timezones => TZInfo::Timezone.all_identifiers.join(', ')
+ :valid_timezones => TZInfo::Timezone.all_identifiers.join(', '),
+ :mails_for_tasks => Config.mails_for_tasks
}.to_json
end
View
1  test/misc_test.rb
@@ -21,6 +21,7 @@ def app
content['max_timeout'].must_equal HTTPCron::Config.max_timeout
content['max_pagination_limit'].must_equal HTTPCron::Config.max_pagination_limit
content['valid_timezones'].must_equal TZInfo::Timezone.all_identifiers.join(', ')
+ content['mails_for_tasks'].must_equal HTTPCron::Config.mails_for_tasks
raise(Sequel::Rollback)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.