spec/model_extensions_spec.rb in tuersteher-0.6.7 vs spec/model_extensions_spec.rb in tuersteher-0.7.0
- old
+ new
@@ -14,10 +14,10 @@
before do
rules = [ModelAccessRule.new(SampleModel).grant.method(:deactived).role(:admin)]
AccessRulesStorage.instance.stub(:model_rules).and_return(rules)
- @user = stub('user')
+ @user = double('user')
Thread.current[:user] = @user
end
context "check_access" do