Sha256: 314d43800fade6db0720bdb4f0adc37e73ede7215cd1f4cdb00cd044af64de57

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'
require 'fixtures/foo_model'

describe FooMailer do
  it 'should include a link to the image' do
    model = FooModel.new
    model.id = 42
    FooModel.stub(:first).and_return model
    verifier = ActiveSupport::MessageVerifier.new(Rails.application.config.secret_key_base)
    FooMailer.foo.body.to_s.should include("example.com/mark_as_read/FooModel/#{verifier.generate(model.id)}.gif")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mark_as_read-0.0.2 spec/mailers/mailer_spec.rb
mark_as_read-0.0.1 spec/mailers/mailer_spec.rb