-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
email_sec, delayed_job, and missing haml #87
Comments
Is no one using haml in their email templates and testing with email_spec ??? |
@thimmaiah this must be a spork issue, nothing else. Have you restarted your spork server after installing HAML? I ask because: I use email_spec with rspec/cucumber and now spork, and everything in my app is HAML. The issue I had was that when running with spork, changes to the HAML templates are not picked up (ie the HAML plugin uses the pre-compiled, cached copies of the templates). Looking at your error, HAML is simply not loaded. If it was, the :handlers array would have had :haml in the list. This issue can surely be closed, it has nothing to do with the email_spec gem. |
Ive restarted and tried multiple times - no joy :( Im at the point where Ive to abandon email_spec simply because my haml (email) templates. Im just not sure why haml is not getting loaded as Ive followed all the steps mentioned across blogs etc but.... Strangely enough the haml gem is part of the tracktrace i.e it is getting invoked in the chain (see stacktrace below /home/thimmaiah/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:13) is getting invoked. Any change you can post your cuc env.rb and other setup files( if any ) - perhaps my setup is not correct ? Error stack trace |
@thimmaiah: I'm speechless, I really have no further advice to give. I just want to confirm one last thing, have your tried disabling delayed_job & email_spec in your test environment, and then see if the mail delivers. And then switch them on/off individually ? On my side, there is 0 configuration for email_spec/haml. I use resque/mailer and have instructed it to deliver mails directly (skipping resque) in the test environments. As far as I'm concern, pushing an email through a background stack during testing is of no use. |
Kenneth - thanks for following up. I did what you said and all views/emails are ok in the test env - no issues. However I found this
So for the time being this seems to be the soln - but its obv that something in my setup is incorrect If this triggers something in your memory - appreciate a shout out. And I do appreciate your help this far. Warm Regards |
My testing env uses spork & cucumber - Im able to run my tests fine and decided to include email_spec. However the email tests are failing
Error Msg
Missing template user_response_mailer/send_contact_info with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en]
The main question is
The text was updated successfully, but these errors were encountered: