Method: AuthenticatedTestHelper#assert_requires_login
- Defined in:
- lib/community_engine/authenticated_test_helper.rb
#assert_requires_login(login = nil) {|HttpLoginProxy.new(self, login)| ... } ⇒ Object
Assert the block redirects to the login
assert_requires_login(:bob) { |c| c.get :edit, :id => 1 }
7 8 9 |
# File 'lib/community_engine/authenticated_test_helper.rb', line 7 def assert_requires_login(login = nil) yield HttpLoginProxy.new(self, login) end |