spec/access_rules_spec.rb in tuersteher-0.5.2 vs spec/access_rules_spec.rb in tuersteher-0.6.0
- old
+ new
@@ -175,10 +175,10 @@
context 'purge_collection' do
class SampleModel
- def owner? user; false; end
+ def owner?(user); false; end
end
before do
rules = [
ModelAccessRule.new(SampleModel).method(:update).role(:admin),