Sha256: 6e895e42f757322f9926203c88e284f77d02e134e1b97b2063b40c06f247a046

Contents?: true

Size: 520 Bytes

Versions: 10

Compression:

Stored size: 520 Bytes

Contents

require 'test_helper'

<% module_namespacing do -%>
class <%= class_name %>Test < ActiveSupport::TestCase
<% if actions.blank? -%>
  # test 'the truth' do
  #   assert true
  # end
<% else -%>
<% actions.each do |action| -%>
  test '<%= action %>' do
    message = <%= class_name %>.<%= action %>
    email = message.email
    assert_equal '<%= action.to_s.humanize %>', email.subject
    assert_equal ['from@example.com'], email.from
    assert_match 'Hi', email.body.encoded
  end
<% end -%>
<% end -%>
end
<% end -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
outbox-rails-1.1.0 lib/generators/test_unit/notifier/templates/notifier_test.rb
outbox-rails-1.0.0 lib/generators/test_unit/notifier/templates/notifier_test.rb
outbox-rails-0.5.1 lib/generators/test_unit/notifier/templates/notifier_test.rb
outbox-rails-0.5.0 lib/generators/test_unit/notifier/templates/notifier_test.rb
outbox-rails-0.4.2 lib/generators/test_unit/notifier/templates/notifier_test.rb
outbox-rails-0.4.1 lib/generators/test_unit/notifier/templates/notifier_test.rb
outbox-rails-0.4.0 lib/generators/test_unit/notifier/templates/notifier_test.rb
outbox-rails-0.3.0 lib/generators/test_unit/notifier/templates/notifier_test.rb
outbox-rails-0.2.0 lib/generators/test_unit/notifier/templates/notifier_test.rb
outbox-rails-0.1.2 lib/generators/test_unit/notifier/templates/notifier_test.rb