Sha256: 19b0a3f251453a7e6f9ec1725124d47afe393b58d38f941acef2721c1bf3468a

Contents?: true

Size: 560 Bytes

Versions: 28

Compression:

Stored size: 560 Bytes

Contents

require 'test_helper'
require 'rails/generators/rails/scaffold/scaffold_generator'
require 'rails/generators/coffee/assets/assets_generator'

class ScaffoldGeneratorTest < Rails::Generators::TestCase
  tests Rails::Generators::ScaffoldGenerator

  destination File.expand_path("../tmp", __FILE__)
  setup do
    prepare_destination
    copy_routes
  end

  def test_assets
    run_generator %w(posts --javascript-engine=coffee --orm=false)
    assert_no_file "app/assets/javascripts/posts.js"
    assert_file "app/assets/javascripts/posts.js.coffee"
  end
end

Version data entries

28 entries across 28 versions & 5 rubygems

Version Path
coffee-rails-3.2.1 test/scaffold_generator_test.rb
coffee-rails-3.2.0 test/scaffold_generator_test.rb
coffee-rails-3.1.1 test/scaffold_generator_test.rb
coffee-rails-3.1.0 test/scaffold_generator_test.rb
coffee-rails-3.1.0.rc.7 test/scaffold_generator_test.rb
coffee-rails-3.1.0.rc.6 test/scaffold_generator_test.rb
coffee-rails-3.1.0.rc.5 test/scaffold_generator_test.rb
coffee-rails-3.1.0.rc.4 test/scaffold_generator_test.rb