Sha256: 911ba10683012d84cc7b8751a7e58a9901548dac8da2826e6b6e15f3678ae92e

Contents?: true

Size: 623 Bytes

Versions: 8

Compression:

Stored size: 623 Bytes

Contents

require 'test_helper'
require 'generators/ember/template_generator'

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

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

  setup :prepare_destination

  test "generates template" do
    run_generator ["post"]
    assert_file "#{app_path}/templates/post.hbs"
  end

  test "Uses config.ember.appkit.paths.app" do
    custom_path = app_path("custom")

    with_config paths: {app: custom_path} do
      run_generator ["post"]
      assert_file "#{custom_path}/templates/post.hbs"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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