Sha256: 71efb2fc76355caa5f4b650a58080b605513fffd00204e0af9dc10c9578d5344

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

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'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_core-0.0.13 spec/html/spec_helper.rb