Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 551 Bytes
require 'rails'
require 'contextual'
# make sure railtie is loaded in case some other
# test task required contextual before rails was loaded
require 'contextual/rails'
# Force the load hooks to be run for action_view
require 'action_view'
require 'action_view/base'
describe "Contextual load hooks" do
it "should add SafeErubis as template handler" do
ActionView::Template::Handlers::SafeErubis.should == Contextual::SafeErubis
end
it "should be able to load action_view/buffers alright" do
require 'action_view/buffers'
end
end
Something went wrong with that request. Please try again.