Sha256: 49bb8b25d04df954bbe868f074a48e170fdad5b8f38222cbb014115a5f17b7b9

Contents?: true

Size: 303 Bytes

Versions: 7

Compression:

Stored size: 303 Bytes

Contents

require 'spec_helper'

class Rad::MockTemplateContext
  inherit Rad::Html::BasicHtmlHelper
  
  inject workspace: :workspace

  attr_accessor :output, :capture, :buffer

  def capture &block
    block.call
  end
  
  def concat value = nil
    @buffer ||= ""
    @buffer << value
    nil
  end      
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rad_core-0.2.6 spec/html/spec_helper.rb
rad_core-0.2.5 spec/html/spec_helper.rb
rad_core-0.2.4 spec/html/spec_helper.rb
rad_core-0.2.3 spec/html/spec_helper.rb
rad_core-0.2.2 spec/html/spec_helper.rb
rad_core-0.2.1 spec/html/spec_helper.rb
rad_core-0.2.0 spec/html/spec_helper.rb