Sha256: 41ed6dfa7a9c66f0ec43a770831b2686cb3d2d204086a02b4c02c7993767e13c

Contents?: true

Size: 494 Bytes

Versions: 5

Compression:

Stored size: 494 Bytes

Contents

require 'test_helper'
require 'lib/generators/haml/testing_helper'

class Haml::Generators::ControllerGeneratorTest < Rails::Generators::TestCase
  destination Rails.root
  tests Rails::Generators::ControllerGenerator

  setup :prepare_destination
  setup :copy_routes

  arguments %w(Account foo bar --template-engine haml)

  test "should invoke haml engine" do
    run_generator 
    assert_file "app/views/account/foo.html.haml"
    assert_file "app/views/account/bar.html.haml"
  end 
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
haml-rails-2.0.1 test/lib/generators/haml/controller_generator_test.rb
haml-rails-2.0.0 test/lib/generators/haml/controller_generator_test.rb
haml-rails-1.0.0 test/lib/generators/haml/controller_generator_test.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/haml-rails-0.9.0/test/lib/generators/haml/controller_generator_test.rb
haml-rails-0.9.0 test/lib/generators/haml/controller_generator_test.rb