Fix rspec specs
This commit is contained in:
parent
700927e40f
commit
dde4b30180
3 changed files with 3 additions and 3 deletions
|
|
@ -1,3 +1,4 @@
|
|||
- @invs = @resource.invitations_to_me
|
||||
-if @invs.count > 0
|
||||
!!!
|
||||
%html
|
||||
|
|
@ -8,7 +9,6 @@
|
|||
%header
|
||||
= image_tag AppConfig[:pod_url] + 'images/logo_caps.png'
|
||||
#container
|
||||
- @invs = @resource.invitations_to_me
|
||||
%p
|
||||
= t('devise.mailer.welcome', :email => @resource.email)
|
||||
= render :partial => 'inviters'
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ describe Invitation do
|
|||
context 'with no inviter' do
|
||||
it 'sends an email that includes the right things' do
|
||||
Invitation.create_invitee(:service => 'email', :identifier => @email)
|
||||
Devise.mailer.deliveries.first.to_s.should include("Welcome #{@email}")
|
||||
Devise.mailer.deliveries.first.to_s.should include("Email not displaying correctly?")
|
||||
end
|
||||
it 'creates a user' do
|
||||
expect {
|
||||
|
|
|
|||
Loading…
Reference in a new issue