test/context_access_test.rb in surrounded-0.9.11 vs test/context_access_test.rb in surrounded-1.0.0
- old
+ new
@@ -35,10 +35,10 @@
end
describe Surrounded::Context, 'access control' do
let(:user){ User.new("Jim") }
let(:other_user){ User.new("Guille") }
- let(:context){ FilteredContext.new(user, other_user) }
+ let(:context){ FilteredContext.new(user: user, other_user: other_user) }
it 'includes triggers when allowed' do
context.stub(:disallow_if_ready?, false) do
assert context.triggers.include?(:if_ready)
end
\ No newline at end of file