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-3.4.0 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.3.3 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.3.2 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.2.1 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.3.1 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.3.0 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.2.0 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.1.4 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.0.7 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-2.0.9 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.1.3 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.0.6 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-2.0.8 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.1.2 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.0.5 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-2.0.7 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-2.0.6 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-2.0.5 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.1.1 lib/mno_enterprise/testing_support/ability_test_helper.rb
mno-enterprise-core-3.0.4 lib/mno_enterprise/testing_support/ability_test_helper.rb