Sha256: a3c491d764222724ed737def5ad9451c1bfe8ef7c676edf740ec349f90e6429f

Contents?: true

Size: 559 Bytes

Versions: 2

Compression:

Stored size: 559 Bytes

Contents

require 'test_helper'
require 'rails/generators/rails/controller/controller_generator'
require 'rails/generators/roy/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=roy --orm=false)
    assert_no_file "app/assets/javascripts/posts.js"
    assert_file "app/assets/javascripts/posts.js.roy"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roy-rails-0.0.2 test/controller_generator_test.rb
roy-rails-0.0.1 test/controller_generator_test.rb