Sha256: 8bfd6fb04aa964c94f9c029fc656c8ad3717097e2f91ead666a5e1f8e813d51d

Contents?: true

Size: 548 Bytes

Versions: 7

Compression:

Stored size: 548 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

if ENV["COV"]
  require 'simplecov'
  SimpleCov.start
end
require 'pry'

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  config.order = 'random'
end

module ActionController
  class Base
    def self.helper_method(*args)
    end
  end
end

require 'access-granted'

class FakeUser < Struct.new(:id, :is_moderator, :is_admin, :is_banned)
end

class FakePost < Struct.new(:id, :user_id)
end

class AccessPolicy
  include AccessGranted::Policy
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
access-granted-1.3.3 spec/spec_helper.rb
access-granted-1.3.1 spec/spec_helper.rb
access-granted-1.3.0 spec/spec_helper.rb
access-granted-1.2.0 spec/spec_helper.rb
access-granted-1.1.2 spec/spec_helper.rb
access-granted-1.1.1 spec/spec_helper.rb
access-granted-1.1.0 spec/spec_helper.rb