test/generators/template_generator_test.rb in ember-appkit-rails-0.1.2 vs test/generators/template_generator_test.rb in ember-appkit-rails-0.2.0

- old
+ new

@@ -9,22 +9,16 @@ setup :prepare_destination test "generates template" do run_generator ["post"] - assert_file "app/assets/javascripts/templates/post.hbs" + assert_file "#{app_path}/templates/post.hbs" end - test "Assert files are properly created with custom path" do - custom_path = ember_path("custom") - run_generator [ "post", "-d", custom_path ] - assert_file "#{custom_path}/templates/post.hbs" - end + test "Uses config.ember.appkit.paths.app" do + custom_path = app_path("custom") - test "Uses config.ember.ember_path" do - custom_path = ember_path("custom") - - with_config ember_path: custom_path do + with_config paths: {app: custom_path} do run_generator ["post"] assert_file "#{custom_path}/templates/post.hbs" end end end