Sha256: 921872f32a0249af1f384790167fec7f346c94c2002fff69a717eaf82086fda1

Contents?: true

Size: 624 Bytes

Versions: 5

Compression:

Stored size: 624 Bytes

Contents

Locomotive.configure do |config|
  config.default_domain = 'example.com'
end

module Locomotive
  class TestController
   
    include Locomotive::Render
   
    attr_accessor :output, :current_site, :current_account
   
    def render(options = {})
      self.output = options[:text]
    end
    
    def response
      @response ||= TestResponse.new
    end
    
    def request
      @request ||= TestRequest.new
    end

  end
  
  class TestResponse
    
    attr_accessor :headers
    
    def initialize
      self.headers = {}
    end
    
  end
  
  class TestRequest
    
    attr_accessor :fullpath
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
locomotive_cms-0.0.1.4 spec/support/locomotive.rb
locomotive_cms-0.0.1.3 spec/support/locomotive.rb
locomotive_cms-0.0.1.2 spec/support/locomotive.rb
locomotive_cms-0.0.1.1 spec/support/locomotive.rb
locomotive_cms-0.0.1 spec/support/locomotive.rb