Sha256: 806d5f72a3f328b12821a6771f029764b7213267ce61f057e6040d6aa3f26015

Contents?: true

Size: 622 Bytes

Versions: 6

Compression:

Stored size: 622 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

6 entries across 6 versions & 1 rubygems

Version Path
slim-rails-1.1.1 test/lib/generators/slim/controller_generator_test.rb
slim-rails-1.1.0 test/lib/generators/slim/controller_generator_test.rb
slim-rails-1.0.3 test/lib/generators/slim/controller_generator_test.rb
slim-rails-1.0.2 test/lib/generators/slim/controller_generator_test.rb
slim-rails-1.0.1 test/lib/generators/slim/controller_generator_test.rb
slim-rails-1.0.0 test/lib/generators/slim/controller_generator_test.rb