aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/user_controller_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-08-24 16:02:28 +0100
committerRobin Houston <robin@lenny.robin>2011-08-24 16:02:28 +0100
commit7796e1fb8d6238ed13b1a4b5ef3ccf91499a9b4b (patch)
tree48a9e84c63be0c7d786d31e73c9e4f0111185fb9 /spec/controllers/user_controller_spec.rb
parenta29b3aaf0ae77af49d38813b62dddcb6889c1ebe (diff)
Anneal brittle test
Diffstat (limited to 'spec/controllers/user_controller_spec.rb')
-rw-r--r--spec/controllers/user_controller_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb
index c974c8a0d..438fb8c0c 100644
--- a/spec/controllers/user_controller_spec.rb
+++ b/spec/controllers/user_controller_spec.rb
@@ -179,7 +179,9 @@ describe UserController, "when signing up" do
deliveries = ActionMailer::Base.deliveries
deliveries.size.should == 1
- deliveries[0].body.should include("when you already have an")
+
+ # This text may span a line break, depending on the length of the SITE_NAME
+ deliveries[0].body.should match(/when\s+you\s+already\s+have\s+an/)
end
# XXX need to do bob@localhost signup and check that sends different email