Sha256: 71619b72bbe6ba72f78f5d7169a5174748045919b76086ac58bf96e2c27d170c

Contents?: true

Size: 624 Bytes

Versions: 17

Compression:

Stored size: 624 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 File.join("app", "views", "account", "foo.html.slim"), %r(app/views/account/foo\.html\.slim)
    assert_file File.join("app", "views", "account", "bar.html.slim"), %r(app/views/account/bar\.html\.slim)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
slim-rails-3.2.0 test/lib/generators/slim/controller_generator_test.rb
slim-rails-3.1.3 test/lib/generators/slim/controller_generator_test.rb
slim-rails-3.1.2 test/lib/generators/slim/controller_generator_test.rb
slim-rails-3.1.1 test/lib/generators/slim/controller_generator_test.rb
slim-rails-3.1.0 test/lib/generators/slim/controller_generator_test.rb
slim-rails-3.0.1 test/lib/generators/slim/controller_generator_test.rb
slim-rails-3.0.0 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.1.5 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.1.4 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.1.3 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.1.2 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.1.1 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.1.0 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.0.4 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.0.3 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.0.2 test/lib/generators/slim/controller_generator_test.rb
slim-rails-2.0.1 test/lib/generators/slim/controller_generator_test.rb