On 22 Aug 2009, at 13:09, Sławosz Sławiński wrote:
Hi,
I'm trying to test emails with Celerity. The problem is, because
Celerity browser uses environment 'cucumber', but Cucubmer runs in
'test'. Emails steps are running in 'test', so it is impossible to
check
mails send in 'cucumber'. I think, I can use webrat for steps with
email
sending, and cucmber for others (i.e. wiht Ajax). But maybe there is
more logical and elegant solution?
I'm not sure, but I think it's more likely the problem is that your
tests are running in a different process to the app you're testing, so
the usual railsey mail testing stuff doesn't work.
We got around this by writing the emails to disk, then having the
tests check the files on disk to validate the emails. Could that work
for you?
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users