From 5386b39f03fc01a2cbc3facd63c73c160f1bbf9e Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Sat, 12 Mar 2016 10:59:10 -0300 Subject: [PATCH] mailconf: do not depend on fixture data (fix random failures) --- test/functional/mailconf_controller_test.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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