Sha256: 87a9d84f683b615ed37ae5375cd50737627073f40bcd5ae558702212f2cb1cae

Contents?: true

Size: 560 Bytes

Versions: 41

Compression:

Stored size: 560 Bytes

Contents

require 'spec_helper'

describe IuguMailer do
  before(:each) do
    @user_invitation = Fabricate(:user_invitation)
  end

  it 'should not raise an error' do
    lambda {IuguMailer.invitation(@user_invitation)}.should_not raise_error
  end

  context "rendered without error" do
    before(:each) do
      @mailer = IuguMailer.invitation(@user_invitation)
    end

    it 'should have a link to accept invite' do
      @mailer.body.should have_link edit_invite_path(:invitation_token => @user_invitation.id.to_s + @user_invitation.token)
    end
  
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.23 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.22 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.21 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.20 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.19 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.18 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.17 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.16 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.14 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.13 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.12 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.11 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.10 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.9 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.7 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.5 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.4 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.3 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.2 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.1 spec/mailers/iugu_mailer_spec.rb