Sha256: ff20fd0a6ab60bcbe9658ecc65336ac869a472749a32b3bbaabf325cbc2c40c5

Contents?: true

Size: 567 Bytes

Versions: 2

Compression:

Stored size: 567 Bytes

Contents

require 'action_dispatch'
require 'action_view'

# A view that behaves like a Rails/ActionView view
class RailsView
  include ActionView::Context # for capture
  include ActionView::Helpers::RenderingHelper # for render
  include ActionView::Helpers::TagHelper # for content_tag
  include ActionView::Helpers::UrlHelper # for link_to

  include Railsstrap::Helpers

  def initialize
  end

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

  def protect_against_forgery?
    false
  end

  def test_button_to_with_block
    true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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