Sha256: dc6c55c0b99940adcf1ad81decfdfc0cd7b954ed56d9fc4b99f247b0c73b473e

Contents?: true

Size: 570 Bytes

Versions: 30

Compression:

Stored size: 570 Bytes

Contents

module Locomotive
  class TestController < ApplicationController

    include Locomotive::Render

    attr_accessor :output, :status, :current_site, :current_locomotive_account

    def render(options = {})
      self.output = options[:text]
      self.status = options[:status]
    end

    def response
      @_response ||= TestResponse.new
    end

    def request
      @_request ||= TestRequest.new
    end

  end

  class TestResponse < ActionDispatch::TestResponse

  end

  class TestRequest < ActionDispatch::TestRequest

    attr_accessor :fullpath

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 spec/support/controller.rb
locomotive_cms-2.5.6 spec/support/controller.rb
locomotive_cms-2.5.6.rc2 spec/support/controller.rb
locomotive_cms-2.5.6.rc1 spec/support/controller.rb
locomotive_cms-2.5.5 spec/support/controller.rb
locomotive_cms-2.5.4 spec/support/controller.rb
locomotive_cms-2.5.3 spec/support/controller.rb
locomotive_cms-2.5.2 spec/support/controller.rb
locomotive_cms-2.5.1 spec/support/controller.rb
locomotive_cms-2.5.0 spec/support/controller.rb
locomotive_cms-2.5.0.rc3 spec/support/controller.rb
locomotive_cms-2.5.0.rc2 spec/support/controller.rb
locomotive_cms-2.5.0.rc1 spec/support/controller.rb
locomotive_cms-2.4.1 spec/support/controller.rb
locomotive_cms-2.4.0 spec/support/controller.rb
locomotive_cms-2.3.1 spec/support/controller.rb
locomotive_cms-2.3.0 spec/support/controller.rb
locomotive_cms-2.2.3 spec/support/controller.rb
locomotive_cms-2.2.2 spec/support/controller.rb
locomotive_cms-2.2.1 spec/support/controller.rb