Sha256: d64ce7c5bf8bec0b6d06a0911154f891d7b18d0977fe7687256cd4c80565277c
Contents?: true
Size: 622 Bytes
Versions: 5
Compression:
Stored size: 622 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_admin 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