Skip to content

Commit

Permalink
return tests that make sure some subfolders are included
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr committed Oct 29, 2013
1 parent 844bf2e commit d683055
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/dummy/app/assets/javascripts/subfolder/template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="hello-world">Subfolder</div>
2 changes: 1 addition & 1 deletion test/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Application < Rails::Application
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de

config.angular_templates.ignore_prefix = 'subfolder/'
config.angular_templates.ignore_prefix = 'ignored_namespace/'
end
end

3 changes: 2 additions & 1 deletion test/precompile_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ def precompile!(rails_env)
assert_match /window\.AngularRailsTemplates/, contents
assert_match /angular\.module/, contents
assert_match /\.put\("template\.html",/, contents
assert_match /\.put\("subfolder\/template\.html",/, contents
assert_match /\.put\("hello-world\.html",/, contents
assert_match /\.put\("erb_template\.html",/, contents

assert_not_match /subfolder/, contents
assert_not_match /ignored_namespace/, contents
end

def app_path
Expand Down

0 comments on commit d683055

Please sign in to comment.