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.11 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.10 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.9 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.8 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.7 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.6 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.5 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.4 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.3 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.2 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.1 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.32 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.31 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.30 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.29 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.28 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.27 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.26 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.25 spec/mailers/iugu_mailer_spec.rb
iugusdk-1.0.0.alpha.24 spec/mailers/iugu_mailer_spec.rb