Commit 5386b39f03fc01a2cbc3facd63c73c160f1bbf9e
1 parent
ccc53a30
Exists in
web_steps_improvements
and in
9 other branches
mailconf: do not depend on fixture data (fix random failures)
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
test/functional/mailconf_controller_test.rb
... | ... | @@ -71,8 +71,10 @@ class MailconfControllerTest < ActionController::TestCase |
71 | 71 | env = Environment.default |
72 | 72 | env.force_www = true |
73 | 73 | env.save! |
74 | + env.domains.delete_all | |
75 | + env.domains.create! name: 'example.com' | |
74 | 76 | get :index, :profile => 'ze' |
75 | - assert_tag :tag => 'li', :content => /ze@colivre.net/ | |
77 | + assert_tag :tag => 'li', :content => /ze@example.com/ | |
76 | 78 | end |
77 | 79 | |
78 | 80 | should 'not display www in email address when force_www=false' do |
... | ... | @@ -80,8 +82,10 @@ class MailconfControllerTest < ActionController::TestCase |
80 | 82 | env = Environment.default |
81 | 83 | env.force_www = false |
82 | 84 | env.save! |
85 | + env.domains.delete_all | |
86 | + env.domains.create! name: 'example.com' | |
83 | 87 | get :index, :profile => 'ze' |
84 | - assert_tag :tag => 'li', :content => /ze@colivre.net/ | |
88 | + assert_tag :tag => 'li', :content => /ze@example.com/ | |
85 | 89 | end |
86 | 90 | |
87 | 91 | should 'create task to environment admin when enable email' do | ... | ... |