Sha256: 88b4d339a509323025dd3c81d1606cb1e8af96d1407e4ee2173f619f3e541a41
Contents?: true
Size: 703 Bytes
Versions: 1
Compression:
Stored size: 703 Bytes
Contents
require 'rspec_ext' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crystal-0.0.13 | spec/html/spec_helper.rb |