Sha256: 944235b62ede427cd245df6b4479abb92613a209f8f2a1135f01afd0f22c6af6

Contents?: true

Size: 429 Bytes

Versions: 7

Compression:

Stored size: 429 Bytes

Contents

require 'test_helper'
require 'generators/ember/route_generator'

class RouteGeneratorTest < Rails::Generators::TestCase
  include GeneratorTestSupport

  tests Ember::Generators::RouteGenerator
  destination File.join(Rails.root, "tmp", "generator_test_output")

  setup :prepare_destination

  test "Assert files are properly created" do
    run_generator %w(index)

    assert_file "#{app_path}/routes/index.js.es6"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ember-appkit-rails-0.4.0 test/generators/route_generator_test.rb
ember-appkit-rails-0.3.2 test/generators/route_generator_test.rb
ember-appkit-rails-0.3.1 test/generators/route_generator_test.rb
ember-appkit-rails-0.3.0 test/generators/route_generator_test.rb
ember-appkit-rails-0.2.2 test/generators/route_generator_test.rb
ember-appkit-rails-0.2.1 test/generators/route_generator_test.rb
ember-appkit-rails-0.2.0 test/generators/route_generator_test.rb