Sha256: 6066a4ad6c65296fb9e9cebd4d6df49261747cce1b0b2b21c1c835f684747c81

Contents?: true

Size: 408 Bytes

Versions: 8

Compression:

Stored size: 408 Bytes

Contents

require 'test_helper'
require 'generators/ember/helper_generator'

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

  tests Ember::Generators::HelperGenerator
  destination File.join(Rails.root, 'tmp')

  setup :prepare_destination

  test 'Generates helper correctly' do
    run_generator ['catdog']
    assert_file "#{app_path}/helpers/catdog.js", /catdog/
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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