Sha256: df8d57a078091873c0e8f6e65c5cb6f672204fbe76fc28fcfd9fa696c7506bc1

Contents?: true

Size: 358 Bytes

Versions: 15

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  config.after do
    Spree::Ability.abilities.delete(AbilityDecorator) if Spree::Ability.abilities.include?(AbilityDecorator)
  end
end

if defined? CanCan::Ability
  class AbilityDecorator
    include CanCan::Ability

    def initialize(_user)
      cannot :manage, Spree::Order
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
solidus_auth_devise-2.5.9 spec/support/ability.rb
solidus_auth_devise-2.5.8 spec/support/ability.rb
solidus_reports-1.2.0 spec/support/ability.rb
solidus_auth_devise-2.5.7 spec/support/ability.rb
solidus_reports-1.1.0 spec/support/ability.rb
solidus_auth_devise-2.5.6 spec/support/ability.rb
solidus_auth_devise-2.5.5 spec/support/ability.rb
solidus_auth_devise-2.5.4 spec/support/ability.rb
solidus_reports-1.0.0 spec/support/ability.rb
solidus_auth_devise-2.5.3 spec/support/ability.rb
solidus_auth_devise-2.5.2 spec/support/ability.rb
solidus_auth_devise-2.5.1 spec/support/ability.rb
solidus_auth_devise-2.5.0 spec/support/ability.rb
solidus_auth_devise-2.4.0 spec/support/ability.rb
solidus_auth_devise-2.3.0 spec/support/ability.rb