Sha256: 720992dc940ba0571f525438fafc68313ba00eff51d9dc1e2c9ec0592554aab4

Contents?: true

Size: 364 Bytes

Versions: 7

Compression:

Stored size: 364 Bytes

Contents

require 'spec_helper'

describe <%= class_name %> do
<% for action in actions -%>
  it "should deliver <%= action.gsub("_", " ") %> message" do
    @expected.subject = <%= action.to_s.humanize.inspect %>
    @expected.to      = "to@example.org"
    @expected.from    = "from@example.com"
    @expected.body    = read_fixture("<%= action %>")
  end

<% end -%>
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspec-rails-2.0.0.beta.11 lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.0.0.beta.10 lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.0.0.beta.9.1 lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.0.0.beta.8 lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.0.0.beta.7 lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.0.0.beta.6 lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.0.0.beta.5 lib/generators/rspec/mailer/templates/mailer_spec.rb