Sha256: be604f21da9c36fa495178e1e6cdc6e4ecb2df76bc271869d0b53d45c3a09bf7

Contents?: true

Size: 205 Bytes

Versions: 30

Compression:

Stored size: 205 Bytes

Contents

module AbilityTestHelper
  
  def stub_ability
    ability = Object.new
    ability.extend(::CanCan::Ability)
    allow(controller).to receive(:current_ability).and_return(ability)
    ability
  end
  
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-core-2.0.4 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.1.0 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.0.3 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-2.0.3 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.0.2 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-2.0.2 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.0.1 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-2.0.1 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.0.0 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-2.0.0 lib/mno_enterprise/testing_support/ability_test_helper.rb