Commit 6de2954fe29f28ce61d8a3ef5e5fb03db1c2766b
1 parent
15dc17da
Exists in
master
and in
29 other branches
Fixing test
Showing
1 changed file
with
4 additions
and
9 deletions
Show diff stats
test/unit/environment_test.rb
... | ... | @@ -602,15 +602,10 @@ class EnvironmentTest < Test::Unit::TestCase |
602 | 602 | |
603 | 603 | should 'provide a default invitation message for member' do |
604 | 604 | env = Environment.default |
605 | - message = [ | |
606 | - 'Hello <friend>,', | |
607 | - "<user> is inviting you to participate of <community> on <environment>.", | |
608 | - 'To accept the invitation, please follow this link:', | |
609 | - '<url>', | |
610 | - "--\n<environment>", | |
611 | - ].join("\n\n") | |
612 | - | |
613 | - assert_equal message, env.message_for_member_invitation | |
605 | + message = env.message_for_member_invitation | |
606 | + ['<friend>', '<user>', '<community>', '<environment>'].each do |item| | |
607 | + assert_match(item, message) | |
608 | + end | |
614 | 609 | end |
615 | 610 | |
616 | 611 | should 'set custom_enterprises_fields' do | ... | ... |