Sha256: 2653c39173eab1eaaa44014579582cf56ca51c5c720c4fa2d3b53ceb227b8e4b

Contents?: true

Size: 746 Bytes

Versions: 33

Compression:

Stored size: 746 Bytes

Contents

require 'test_helper'
require 'lib/generators/haml/testing_helper'

class Haml::Generators::MailerGeneratorTest < Rails::Generators::TestCase
  destination File.join(Rails.root)
  tests Rails::Generators::MailerGenerator
  arguments %w(notifier foo bar --template-engine haml)

  setup :prepare_destination
  setup :copy_routes

  test "should invoke template engine" do
    run_generator
    assert_file "app/views/notifier/foo.text.haml" do |view|
      assert_match %r(app/views/notifier/foo\.text\.haml), view
      assert_match /\= @greeting/, view
    end

    assert_file "app/views/notifier/bar.text.haml" do |view|
      assert_match %r(app/views/notifier/bar\.text\.haml), view
      assert_match /\= @greeting/, view
    end
  end
end

Version data entries

33 entries across 33 versions & 6 rubygems

Version Path
haml-rails-0.8.2 test/lib/generators/haml/mailer_generator_test.rb
haml-rails-0.8.1 test/lib/generators/haml/mailer_generator_test.rb
haml-rails-0.8.0 test/lib/generators/haml/mailer_generator_test.rb
haml-rails-0.7.0 test/lib/generators/haml/mailer_generator_test.rb
haml-rails-0.6.0 test/lib/generators/haml/mailer_generator_test.rb
scaffold-bootstrap3-1.0.1 lib/generators/haml/mailer_generator_test.rb
scaffold-bootstrap3-1.0.0 lib/generators/haml/mailer_generator_test.rb
scaffold-bootstrap3-0.0.9 lib/generators/haml/mailer_generator_test.rb
scaffold-bootstrap3-0.0.8 lib/generators/haml/mailer_generator_test.rb
haml-rails-0.5.3 test/lib/generators/haml/mailer_generator_test.rb
haml-rails-0.5.2 test/lib/generators/haml/mailer_generator_test.rb
haml-rails-0.5.1 test/lib/generators/haml/mailer_generator_test.rb
scaffold-bootstrap3-0.0.6 lib/generators/haml/mailer_generator_test.rb
scaffold-bootstrap3-0.0.5 lib/generators/haml/mailer_generator_test.rb
scaffold-bootstrap3-0.0.4 lib/generators/haml/mailer_generator_test.rb
scaffold-bootstrap3-0.0.2 lib/generators/haml/mailer_generator_test.rb
haml-rails-0.4 test/lib/generators/haml/mailer_generator_test.rb
haml-rails-0.3.5 test/lib/generators/haml/mailer_generator_test.rb
haml-bootstrap-rails-0.3.11 test/lib/generators/haml/mailer_generator_test.rb
bootstrap-haml-rails-0.4.5 test/lib/generators/haml/mailer_generator_test.rb