diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-06-20 23:38:38 +0200 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-06-20 23:38:38 +0200 |
commit | d6b1caa8f2011487c08b414605883f1f220d0aaa (patch) | |
tree | 1e2cd2ee1f8f31812c0acf71350ffe423ca8c5a9 | |
parent | 08998d2eec0791a3ad38307d5fa54459b93bd775 (diff) | |
download | rails-d6b1caa8f2011487c08b414605883f1f220d0aaa.tar.gz rails-d6b1caa8f2011487c08b414605883f1f220d0aaa.tar.bz2 rails-d6b1caa8f2011487c08b414605883f1f220d0aaa.zip |
Check if malformed fixture exists first
Now if somebody by mistake will remove malformed files test will raise error.
-rw-r--r-- | actionview/test/template/render_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb index 81f3391fcd..8cffe73cce 100644 --- a/actionview/test/template/render_test.rb +++ b/actionview/test/template/render_test.rb @@ -376,6 +376,7 @@ module RenderTestCases def test_render_ignores_templates_with_malformed_template_handlers ActiveSupport::Deprecation.silence do %w(malformed malformed.erb malformed.html.erb malformed.en.html.erb).each do |name| + assert File.exists?(File.expand_path("#{FIXTURE_LOAD_PATH}/test/malformed/#{name}~")), "Malformed file (#{name}~) which should be ignored does not exists" assert_raises(ActionView::MissingTemplate) { @view.render(:file => "test/malformed/#{name}") } end end |