Sha256: 55d35f61d52f67c95fda76def6e366eb40c2052f7cc41256bb830e27a04f8e63

Contents?: true

Size: 685 Bytes

Versions: 2

Compression:

Stored size: 685 Bytes

Contents

require 'tilt'
require 'padrino-helpers'
require 'padrino-routing'

# A view that behaves like a Padrino view
class PadrinoView
  include Padrino::Helpers::OutputHelpers # for capture
  include Padrino::Helpers::TagHelpers # for content_tag
  include Padrino::Helpers::AssetTagHelpers # for link_to
  include Padrino::Helpers::FormHelpers # for button_to
  include Padrino::Routing::Helpers # for url_for
  include Railsstrap::Helpers

  def self.app_name
    'test'
  end

  def self.named_paths
    {[:test, "/"] => '/'}
  end

  def self.uri_root
    '/'
  end

  def request
    Rack::Request.new 'REQUEST_METHOD' => 'GET'
  end

  def test_button_to_with_block
    false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railsstrap-4.0.0.beta3 spec/support/padrino.rb
railsstrap-4.0.0.beta2 spec/support/padrino.rb