Sha256: b5a3f00086cab0adb0bd9b5bda100777462ede57f16496478af140d1f21fffc6

Contents?: true

Size: 416 Bytes

Versions: 13

Compression:

Stored size: 416 Bytes

Contents

module Arrthorizer
  module Rails
    module Resetter
      extend self

      def reset!
        Arrthorizer::Rails::ControllerAction.send(:registry).reset!

        Arrthorizer::Rails::Configuration.load
      end
    end
  end

  class Registry
    def reset!
      self.storage = Hash.new
    end
  end
end

RSpec.configure do |config|
  config.before :each do
    Arrthorizer::Rails::Resetter.reset!
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
arrthorizer-0.4.2 spec/support/reset.rb
arrthorizer-0.4.1 spec/support/reset.rb
arrthorizer-0.3.2 spec/support/reset.rb
arrthorizer-0.3.1 spec/support/reset.rb
arrthorizer-0.3.0 spec/support/reset.rb
arrthorizer-0.2.1 spec/support/reset.rb
arrthorizer-0.2.0 spec/support/reset.rb
arrthorizer-0.1.3 spec/support/reset.rb
arrthorizer-0.1.2 spec/support/reset.rb
arrthorizer-0.1.1 spec/support/reset.rb
arrthorizer-0.1.0 spec/support/reset.rb
arrthorizer-0.1.0.pre2 spec/support/reset.rb
arrthorizer-0.1.0.pre spec/support/reset.rb