Sha256: ffb1a3e0b233b11da0aeacbe39ffd78ccd2c88bd5fbf93a3d05798800501214f

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

dir = File.dirname __FILE__
crystal_dir = File.expand_path "#{dir}/../.."
lib_dir = "#{crystal_dir}/lib"
$LOAD_PATH << lib_dir unless $LOAD_PATH.include? lib_dir

require 'crystal/html'

module Crystal
  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 Crystal::BasicHtmlHelper
    # include BasicHtmlHelper, FlashHelper, FormHelper, JavascriptHelper, UrlHelper
  end
end


require 'crystal/spec/environment'
require 'crystal/spec/xhtml'

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
crystal-0.0.12 spec/html/helper.rb
crystal_ext-0.0.11 spec/html/helper.rb