Sha256: 708fbf2ce52af36912f00cb15d9af16dbc9b80a0beddb81314e7b37ac35d6184

Contents?: true

Size: 437 Bytes

Versions: 4

Compression:

Stored size: 437 Bytes

Contents

require "bundler/setup"
Bundler.require(:default)
require "minitest/autorun"
require "minitest/pride"
require "action_controller"

User = Struct.new(:id) do
  def self.where(id: nil)
    [new(id)]
  end
end

module ActionController
  class Base
    attr_reader :session

    def initialize
      @session = {}
    end
  end
end

class ApplicationController < ActionController::Base
  attr_accessor :current_user
  impersonates :user
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pretender-0.3.1 test/test_helper.rb
pretender-0.3.0 test/test_helper.rb
pretender-0.2.1 test/test_helper.rb
pretender-0.2.0 test/test_helper.rb