require 'rspec_ext'
require 'rad/html'
module Rad
class MockTemplateContext
inject config: :config, workspace: :workspace
attr_accessor :output, :capture, :buffer
def capture &block
block.call
end
def concat value = nil
@buffer ||= ""
@buffer << value
nil
end
inherit Rad::BasicHtmlHelper
# include BasicHtmlHelper, FlashHelper, FormHelper, JavascriptHelper, UrlHelper
end
end
require 'rad/spec/environment'
require 'rad/spec/xhtml'