Commit 239cc9b167c32ff9688e29add9bb6e9a218a58ff

Authored by Joenio Costa
1 parent 9e766d40

subject is formed by environment name more 'Pending tasks'

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
test/unit/pending_task_notifier_test.rb
@@ -14,9 +14,10 @@ class PendingTaskNotifierTest < Test::Unit::TestCase @@ -14,9 +14,10 @@ class PendingTaskNotifierTest < Test::Unit::TestCase
14 end 14 end
15 15
16 should 'be able to deliver notification' do 16 should 'be able to deliver notification' do
  17 + env = Environment.default
17 p = create_user('maelcum').person 18 p = create_user('maelcum').person
18 response = PendingTaskNotifier.deliver_notification(p) 19 response = PendingTaskNotifier.deliver_notification(p)
19 - assert_equal 'Pending tasks', response.subject 20 + assert_equal "#{env.name} - Pending tasks", response.subject
20 assert_equal p.email, response.to[0] 21 assert_equal p.email, response.to[0]
21 end 22 end
22 23