Sha256: 5329ec312fb4f4b7d9b22f2ddef326236f1419d486ca79df7e77ccca912a43fa

Contents?: true

Size: 584 Bytes

Versions: 5

Compression:

Stored size: 584 Bytes

Contents

require 'test_helper'
require 'lib/generators/slim/testing_helper'

class Slim::Generators::ControllerGeneratorTest < Rails::Generators::TestCase
  destination File.join(Rails.root)
  tests Rails::Generators::ControllerGenerator
  arguments %w(Account foo bar --template-engine slim)

  setup :prepare_destination
  setup :copy_routes

  test "should invoke template engine" do
    run_generator
    assert_file "app/views/account/foo.html.slim", %r(app/views/account/foo\.html\.slim)
    assert_file "app/views/account/bar.html.slim", %r(app/views/account/bar\.html\.slim)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slim-rails-0.2.1 test/lib/generators/slim/controller_generator_test.rb
slim-rails-0.2.0 test/lib/generators/slim/controller_generator_test.rb
slim-rails-0.1.2 test/lib/generators/slim/controller_generator_test.rb
slim-rails-0.1.1 test/lib/generators/slim/controller_generator_test.rb
slim-rails-0.1.0 test/lib/generators/slim/controller_generator_test.rb