Sha256: 52c4cafd7e3787d5f7604dccbf0127490dede7382b0c7251ddec97a4f43d0bf2
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
require 'test_helper' require 'rails/generators/rails/controller/controller_generator' require 'rails/generators/typescript/assets/assets_generator' class ControllerGeneratorTest < Rails::Generators::TestCase tests Rails::Generators::ControllerGenerator destination File.expand_path("../tmp", __FILE__) setup do prepare_destination copy_routes end def test_assets run_generator %w(posts --javascript-engine=typescript --orm=false) assert_no_file "app/assets/javascripts/posts.js" assert_file "app/assets/javascripts/posts.ts" end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
typescript-monkey-0.9.0 | test/controller_generator_test.rb |
ts-rails-0.0.1 | test/controller_generator_test.rb |
typescript-rails-0.6.2.4 | test/controller_generator_test.rb |