diff --git a/test/functional/mailconf_controller_test.rb b/test/functional/mailconf_controller_test.rb index d039461..7c1d8ec 100644 --- a/test/functional/mailconf_controller_test.rb +++ b/test/functional/mailconf_controller_test.rb @@ -71,8 +71,10 @@ class MailconfControllerTest < ActionController::TestCase env = Environment.default env.force_www = true env.save! + env.domains.delete_all + env.domains.create! name: 'example.com' get :index, :profile => 'ze' - assert_tag :tag => 'li', :content => /ze@colivre.net/ + assert_tag :tag => 'li', :content => /ze@example.com/ end should 'not display www in email address when force_www=false' do @@ -80,8 +82,10 @@ class MailconfControllerTest < ActionController::TestCase env = Environment.default env.force_www = false env.save! + env.domains.delete_all + env.domains.create! name: 'example.com' get :index, :profile => 'ze' - assert_tag :tag => 'li', :content => /ze@colivre.net/ + assert_tag :tag => 'li', :content => /ze@example.com/ end should 'create task to environment admin when enable email' do -- libgit2 0.21.2