diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-25 21:27:57 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-25 21:27:57 +0000 |
commit | 4942e5b1cbad6ee8e9340cfd5e1f643d850eeaa0 (patch) | |
tree | 7e53a4ab30dcff2d914b185c4e7f5e1c91075404 /actionpack/test/template | |
parent | b0bfcca16efff329e0cfaebc18a7debed126473b (diff) | |
download | rails-4942e5b1cbad6ee8e9340cfd5e1f643d850eeaa0.tar.gz rails-4942e5b1cbad6ee8e9340cfd5e1f643d850eeaa0.tar.bz2 rails-4942e5b1cbad6ee8e9340cfd5e1f643d850eeaa0.zip |
Whitespace + formatting
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9089 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/template_finder_test.rb | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/actionpack/test/template/template_finder_test.rb b/actionpack/test/template/template_finder_test.rb index 8640d22e02..296815f4cb 100644 --- a/actionpack/test/template/template_finder_test.rb +++ b/actionpack/test/template/template_finder_test.rb @@ -30,8 +30,8 @@ class TemplateFinderTest < Test::Unit::TestCase assert_equal Dir.glob("#{LOAD_PATH_ROOT}/**/*").find_all {|f| !File.directory?(f) }.size, ActionView::TemplateFinder.processed_view_paths[LOAD_PATH_ROOT].size end - - def test_find_template_extension_from_first_render + + def test_find_template_extension_from_first_render assert_nil @finder.send(:find_template_extension_from_first_render) { @@ -50,26 +50,23 @@ class TemplateFinderTest < Test::Unit::TestCase assert_equal expectation, @finder.send(:find_template_extension_from_first_render) end end - + def test_should_report_file_exists_correctly - assert_nil @finder.send(:find_template_extension_from_first_render) + assert_nil @finder.send(:find_template_extension_from_first_render) assert_equal false, @finder.send(:file_exists?, 'test.rhtml') assert_equal false, @finder.send(:file_exists?, 'test.rb') @template.instance_variable_set('@first_render', 'foo.rb') - - assert_equal 'rb', @finder.send(:find_template_extension_from_first_render) + + assert_equal 'rb', @finder.send(:find_template_extension_from_first_render) assert_equal false, @finder.send(:file_exists?, 'baz') assert_equal false, @finder.send(:file_exists?, 'baz.rb') end - - uses_mocha 'Template finder tests' do + uses_mocha 'Template finder tests' do def test_should_update_extension_cache_when_template_handler_is_registered ActionView::TemplateFinder.expects(:update_extension_cache_for).with("funky") ActionView::Template::register_template_handler :funky, Class.new(ActionView::TemplateHandler) end - end - end |