Sha256: ff32632d4ed85e33fabcb76bf5b7384113ead172cb8bd49bfb323b73fd462aa0
Contents?: true
Size: 619 Bytes
Versions: 7
Compression:
Stored size: 619 Bytes
Contents
require 'spec_helper' module CanTango::Ability class Base include CanTango::Ability::Helper::Engine def permit_rules can :edit, Project end end end class MyAccount end class User attr_accessor :account end describe CanTango::Ability::Helper::Engine do before do @user = User.new end subject do CanTango::Ability::Base.new @user end context 'Ability should have' do [:engines, :each_engine, :execute_engines!].each do |method_name| describe "#{method_name} method" do specify { subject.should respond_to(method_name) } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems