lib/generators/ember/model_generator.rb in ember-appkit-rails-0.4.0 vs lib/generators/ember/model_generator.rb in ember-appkit-rails-0.5.0

- old
+ new

@@ -8,11 +8,16 @@ source_root File.expand_path("../../templates", __FILE__) desc "Creates a new ember.js model" argument :attributes, :type => :array, :default => [], :banner => "field[:type] field[:type] ..." def create_model_files - file_path = File.join(app_path, 'models', class_path, "#{file_name.singularize}.js.es6") - template "model.js.es6", file_path + file_path = File.join(app_path, 'models', class_path, "#{file_name.singularize}.es6") + template "model.es6", file_path + end + + def create_test_files + file_path = File.join('test', 'models', class_path, "#{file_name.singularize}_test.es6") + template "test/model.es6", file_path end private EMBER_TYPE_LOOKUP = {