Sha256: b36bc9aeee2990cf37500e7782d4a68e987e09852829e1c0c0a1d2093e46979e

Contents?: true

Size: 558 Bytes

Versions: 54

Compression:

Stored size: 558 Bytes

Contents

require "spec_helper"

describe <%= class_name %> do
<% for action in actions -%>
  describe "<%= action %>" do
    let(:mail) { <%= class_name %>.<%= action %> }

    it "renders the headers" do
      mail.subject.should eq(<%= action.to_s.humanize.inspect %>)
      mail.to.should eq(["to@example.org"])
      mail.from.should eq(["from@example.com"])
    end

    it "renders the body" do
      mail.body.encoded.should match("Hi")
    end
  end

<% end -%>
<% if actions.blank? -%>
  pending "add some examples to (or delete) #{__FILE__}"
<% end -%>
end

Version data entries

54 entries across 49 versions & 4 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.11.4 lib/generators/rspec/mailer/templates/mailer_spec.rb
gem_repackager-0.1.0 support/gems/rspec-rails-2.11.0/lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.11.0 lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.10.1 lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.10.0 lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.9.0 lib/generators/rspec/mailer/templates/mailer_spec.rb
rspec-rails-2.9.0.rc2 lib/generators/rspec/mailer/templates/mailer_spec.rb