Sha256: b4df0932650fcc82778a9c6a9da8a3a586cfe437adb40a3ccaa057d60fdd6e5c

Contents?: true

Size: 562 Bytes

Versions: 7

Compression:

Stored size: 562 Bytes

Contents

require "test_helper"

class ScaffoldTemplatesGeneratorTest < Rails::Generators::TestCase
  tests Wobapphelpers::Generators::ScaffoldTemplatesGenerator
  destination File.expand_path("../../tmp", __FILE__)
  setup :prepare_destination

  test "Assert all files are properly created" do
    run_generator
    ["show.html.erb", "edit.html.erb", "new.html.erb", 
      "index.html.erb", "_form.html.erb"].each do |file|
      assert_file "lib/templates/erb/scaffold/#{file}"
    end
    assert_file "lib/templates/rails/scaffold_controller/controller.rb"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wobapphelpers-4.2.0 test/generators/scaffold_templates_generator_test.rb
wobapphelpers-4.1.2 test/generators/scaffold_templates_generator_test.rb
wobapphelpers-4.1.1 test/generators/scaffold_templates_generator_test.rb
wobapphelpers-4.1.0 test/generators/scaffold_templates_generator_test.rb
wobapphelpers-4.0.0 test/generators/scaffold_templates_generator_test.rb
wobapphelpers-3.1.1 test/generators/scaffold_templates_generator_test.rb
wobapphelpers-3.1.0 test/generators/scaffold_templates_generator_test.rb