test/find_abilities_test.rb in canard-0.2.7 vs test/find_abilities_test.rb in canard-0.3.1

- old
+ new

@@ -21,28 +21,28 @@ end it "finds the abilities with the new syntax" do Canard.find_abilities - Canard.ability_definitions.keys.must_include :moderator + Canard.ability_definitions.keys.must_include :author end it "reloads existing abilities" do Canard.find_abilities Canard::Abilities.send(:instance_variable_set, '@definitions', {}) Canard.find_abilities - Canard.ability_definitions.keys.must_include :moderator + Canard.ability_definitions.keys.must_include :author Canard.ability_definitions.keys.must_include :admin end end describe "abilities_for" do it "raises a deprecation warning" do assert_deprecated do - Canard.abilities_for(:this) { puts 'that' } + Canard.abilities_for(:this) { return 'that' } end end end end