Sha256: 23ded6f653e48e160fe53397bffcb6d136088bd8704003dd4c2c16b5ec48bf95
Contents?: true
Size: 342 Bytes
Versions: 2
Compression:
Stored size: 342 Bytes
Contents
require 'mocks/user' require 'mocks/request' require 'mocks/cookie' module Mocks class Controller attr_accessor :current_user, :request, :cookies def initialize(user = User.new, request = Request.new, cookies = Cookie.new) self.current_user = user self.request = request self.cookies = cookies end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sojourn-0.1.1 | spec/mocks/controller.rb |
sojourn-0.1.0 | spec/mocks/controller.rb |