test/mailers/invitation_test.rb in devise_invitable-0.3.0 vs test/mailers/invitation_test.rb in devise_invitable-0.3.1

- old
+ new

@@ -25,11 +25,11 @@ test 'email sent after reseting the user password' do assert_not_nil mail end test 'content type should be set to html' do - assert_equal 'text/html', mail.content_type + assert_equal 'text/html; charset=UTF-8', mail.content_type end test 'send invitation to the user email' do assert_equal [user.email], mail.to end @@ -37,16 +37,16 @@ test 'setup sender from configuration' do assert_equal ['test@example.com'], mail.from end test 'setup subject from I18n' do - store_translations :en, :devise => { :mailer => { :invitation => 'Invitation' } } do - assert_equal 'Invitation', mail.subject + store_translations :en, :devise => { :mailer => { :invitation => { :subject => 'Localized Invitation' } } } do + assert_equal 'Localized Invitation', mail.subject end end test 'subject namespaced by model' do - store_translations :en, :devise => { :mailer => { :user => { :invitation => 'User Invitation' } } } do + store_translations :en, :devise => { :mailer => { :invitation => { :user_subject => 'User Invitation' } } } do assert_equal 'User Invitation', mail.subject end end test 'body should have user info' do