Sha256: 64a75dd53fed75b6eceeba987ac253781c02a769446282dad1b9922493a4519b

Contents?: true

Size: 519 Bytes

Versions: 2

Compression:

Stored size: 519 Bytes

Contents

require "test_helper"
require "generators/markerb/mailer/mailer_generator"

class GeneratorTest < Rails::Generators::TestCase
  tests Markerb::Generators::MailerGenerator
  destination File.expand_path("../tmp", __FILE__)
  setup :prepare_destination

  test "assert all views are properly created with given name" do
    run_generator %w(notifier foo bar baz)

    assert_file "app/views/notifier/foo.markerb"
    assert_file "app/views/notifier/bar.markerb"
    assert_file "app/views/notifier/baz.markerb"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
markerb-1.1.0 test/generator_test.rb
markerb-1.0.2 test/generator_test.rb