Sha256: d7da69083d2cfb452f8f491c71c98d716ff07db8a214a3b254f92447eb202e71

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

require 'generators/generator_test_helper'

class RailsControllerGeneratorTest < GeneratorTestCase

  def test_controller_generates_controller
    run_generator('controller', %w(products))

    assert_generated_controller_for :products
    assert_generated_functional_test_for :products
    assert_generated_helper_for :products
  end

  def test_controller_generates_namespaced_controller
    run_generator('controller', %w(admin::products))

    assert_generated_controller_for "admin::products"
    assert_generated_functional_test_for "admin::products"
    assert_generated_helper_for "admin::products"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
antfarm-0.3.0 rails/vendor/rails/railties/test/generators/rails_controller_generator_test.rb
antfarm-0.4.0 rails/vendor/rails/railties/test/generators/rails_controller_generator_test.rb