Sha256: 1602c14cb7b55766001c7cf7e4b5961cb9806961ca3888c370a82ed536a18c51

Contents?: true

Size: 644 Bytes

Versions: 3

Compression:

Stored size: 644 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 "#{ember_path}/routes/index.js.es6"
  end

  test "Assert files are properly created with custom path" do
    custom_path = ember_path("custom")
    run_generator [ "index", "-d", custom_path ]

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ember-appkit-rails-0.1.2 test/generators/route_generator_test.rb
ember-appkit-rails-0.1.1 test/generators/route_generator_test.rb
ember-appkit-rails-0.0.1 test/generators/route_generator_test.rb