spec/lib/protector/adapters/sequel_spec.rb in protector-0.6.4 vs spec/lib/protector/adapters/sequel_spec.rb in protector-0.7.0
- old
+ new
@@ -13,10 +13,10 @@
included do |klass|
protect do |x|
scope{ where('1=0') } if x == '-'
scope{ where("#{klass.table_name}__number".to_sym => 999) } if x == '+'
- can :view, :dummy_id unless x == '-'
+ can :read, :dummy_id unless x == '-'
end
end
end
[Dummy, Fluffy].each{|c| c.send :include, ProtectionCase}
\ No newline at end of file