spec/model_extensions_spec.rb in tuersteher-0.3.4 vs spec/model_extensions_spec.rb in tuersteher-0.4.0
- old
+ new
@@ -12,10 +12,10 @@
end
end
before do
- rules = [ModelAccessRule.new(SampleModel).grant.permission(:deactived).role(:admin)]
+ rules = [ModelAccessRule.new(SampleModel).grant.method(:deactived).role(:admin)]
AccessRulesStorage.instance.stub(:model_rules).and_return(rules)
@user = stub('user')
Thread.current[:user] = @user
end