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