Sha256: 73802910436f36620065cf675cd7c2474e8d538f8e9d94426d26f27584b0940a
Contents?: true
Size: 745 Bytes
Versions: 5
Compression:
Stored size: 745 Bytes
Contents
require 'test_helper' require 'lib/generators/slim/testing_helper' class Slim::Generators::MailerGeneratorTest < Rails::Generators::TestCase destination File.join(Rails.root) tests Rails::Generators::MailerGenerator arguments %w(notifier foo bar --template-engine slim) setup :prepare_destination setup :copy_routes test "should invoke template engine" do run_generator assert_file "app/views/notifier/foo.text.slim" do |view| assert_match %r(app/views/notifier/foo\.text\.slim), view assert_match /\= @greeting/, view end assert_file "app/views/notifier/bar.text.slim" do |view| assert_match %r(app/views/notifier/bar\.text\.slim), view assert_match /\= @greeting/, view end end end
Version data entries
5 entries across 5 versions & 1 rubygems