From 6de2954fe29f28ce61d8a3ef5e5fb03db1c2766b Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 2 Feb 2010 14:26:47 -0300 Subject: [PATCH] Fixing test --- test/unit/environment_test.rb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/test/unit/environment_test.rb b/test/unit/environment_test.rb index a6f39fd..fb9e8fa 100644 --- a/test/unit/environment_test.rb +++ b/test/unit/environment_test.rb @@ -602,15 +602,10 @@ class EnvironmentTest < Test::Unit::TestCase should 'provide a default invitation message for member' do env = Environment.default - message = [ - 'Hello ,', - " is inviting you to participate of on .", - 'To accept the invitation, please follow this link:', - '', - "--\n", - ].join("\n\n") - - assert_equal message, env.message_for_member_invitation + message = env.message_for_member_invitation + ['', '', '', ''].each do |item| + assert_match(item, message) + end end should 'set custom_enterprises_fields' do -- libgit2 0.21.2