aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/new_base
diff options
context:
space:
mode:
authorYehuda Katz and Carl Lerche <wycats@gmail.com>2009-03-23 15:45:01 -0700
committerYehuda Katz and Carl Lerche <wycats@gmail.com>2009-03-23 15:45:01 -0700
commita501638e9dcf55e45613637c52e4169b6324f285 (patch)
treeafc99eff992a16b6b328563eb9db8cf707686cf2 /actionpack/test/new_base
parent34f058e082754bb726a4753fa26e8e8c082702c0 (diff)
downloadrails-a501638e9dcf55e45613637c52e4169b6324f285.tar.gz
rails-a501638e9dcf55e45613637c52e4169b6324f285.tar.bz2
rails-a501638e9dcf55e45613637c52e4169b6324f285.zip
Checkpoint
Diffstat (limited to 'actionpack/test/new_base')
-rw-r--r--actionpack/test/new_base/test_helper.rb38
1 files changed, 2 insertions, 36 deletions
diff --git a/actionpack/test/new_base/test_helper.rb b/actionpack/test/new_base/test_helper.rb
index bb4667007b..e33b4239ad 100644
--- a/actionpack/test/new_base/test_helper.rb
+++ b/actionpack/test/new_base/test_helper.rb
@@ -1,11 +1,13 @@
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$:.unshift(File.dirname(__FILE__) + '/../../../activesupport/lib')
+$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'test/unit'
require 'active_support'
require 'active_support/test_case'
require 'action_controller'
require 'action_view/base'
+require 'fixture_template'
begin
require 'ruby-debug'
@@ -50,42 +52,6 @@ module ActionController
end
end
-module ActionView #:nodoc:
- class FixtureTemplate < Template
- class FixturePath < Template::Path
- def initialize(hash = {})
- @hash = {}
-
- hash.each do |k, v|
- @hash[k.sub(/\.\w+$/, '')] = FixtureTemplate.new(v, k.split("/").last, self)
- end
-
- super("fixtures://root")
- end
-
- def find_template(path)
- @hash[path]
- end
- end
-
- def initialize(body, *args)
- @body = body
- super(*args)
- end
-
- def source
- @body
- end
-
- private
-
- def find_full_path(path, load_paths)
- return '/', path
- end
-
- end
-end
-
# Temporary base class
class Rack::TestCase < ActiveSupport::TestCase
include Rack::Test::Methods