diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-04-12 20:26:42 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-04-12 20:26:42 +0000 |
commit | 596112dcf82d58fd3f10e875818e1a99c4a0575e (patch) | |
tree | c42e867cfb5ed58ed205872489e8e44d3bdf6835 /actionpack/test | |
parent | 6351e0a541698bdaca348ad78bc9f7b25f6d56d6 (diff) | |
download | rails-596112dcf82d58fd3f10e875818e1a99c4a0575e.tar.gz rails-596112dcf82d58fd3f10e875818e1a99c4a0575e.tar.bz2 rails-596112dcf82d58fd3f10e875818e1a99c4a0575e.zip |
remove useless mock test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/base_test.rb | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/actionpack/test/template/base_test.rb b/actionpack/test/template/base_test.rb deleted file mode 100644 index ec35f82dde..0000000000 --- a/actionpack/test/template/base_test.rb +++ /dev/null @@ -1,47 +0,0 @@ -require "#{File.dirname(__FILE__)}/../abstract_unit" -require "#{File.dirname(__FILE__)}/../testing_sandbox" - -class ActionViewTemplateTest < Test::Unit::TestCase - include TestingSandbox - - uses_mocha "Action View Templates" do - def setup - @template = ActionView::Base.new - end - - def test_should_find_delegated_extension - @template.expects(:delegate_template_exists?).with('foo').returns(['foo']) - assert_equal :foo, @template.send(:find_template_extension_for, 'foo') - end - - def test_should_find_formatted_erb_extension - @template.expects(:delegate_template_exists?).with('foo').returns(nil) - @template.expects(:formatted_template_exists?).with('foo.html').returns("erb") - assert_equal "html.erb", @template.send(:find_template_extension_for, 'foo') - end - - def test_should_find_erb_extension - @template.expects(:delegate_template_exists?).with('foo').returns(nil) - @template.expects(:formatted_template_exists?).with('foo.html').returns(nil) - @template.expects(:erb_template_exists?).with('foo').returns(:erb) - assert_equal :erb, @template.send(:find_template_extension_for, 'foo') - end - - def test_should_find_builder_extension - @template.expects(:delegate_template_exists?).with('foo').returns(nil) - @template.expects(:formatted_template_exists?).with('foo.html').returns(nil) - @template.expects(:erb_template_exists?).with('foo').returns(nil) - @template.expects(:builder_template_exists?).with('foo').returns(:builder) - assert_equal :builder, @template.send(:find_template_extension_for, 'foo') - end - - def test_should_find_javascript_extension - @template.expects(:delegate_template_exists?).with('foo').returns(nil) - @template.expects(:formatted_template_exists?).with('foo.html').returns(nil) - @template.expects(:erb_template_exists?).with('foo').returns(nil) - @template.expects(:builder_template_exists?).with('foo').returns(nil) - @template.expects(:javascript_template_exists?).with('foo').returns(true) - assert_equal :rjs, @template.send(:find_template_extension_for, 'foo') - end - end -end
\ No newline at end of file |