Sha256: 6ac8e22b8f4deb353afac9514899ef75d6c4f2630428bb22ecae6b132fcee1e1

Contents?: true

Size: 488 Bytes

Versions: 6

Compression:

Stored size: 488 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper')

describe <%= class_name %> do
<% for action in actions -%>
  it "should deliver <%= action.gsub("_", " ") %> message" do
    @expected.subject = '<%= class_name %>#<%= action %>'
    @expected.body    = read_fixture('<%= action %>')
    @expected.date    = Time.now

    @expected.encoded.should == <%= class_name %>.create_<%= action %>(@expected.date).encoded
  end

<% end -%>
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails3-generators-0.3.3 lib/generators/rspec/mailer/templates/mailer_spec.rb
rails3-generators-0.3.2 lib/generators/rspec/mailer/templates/mailer_spec.rb
rails3-generators-0.3.1 lib/generators/rspec/mailer/templates/mailer_spec.rb
rails3-generators-0.3.0 lib/generators/rspec/mailer/templates/mailer_spec.rb
rails3-generators-0.2.0 lib/generators/rspec/mailer/templates/mailer_spec.rb
rails3-generators-0.1.0 lib/generators/rspec/mailer/templates/mailer_spec.rb