Sha256: ceb07ef480a6b97d71bc53bc36f868186c0cbcb137b3b359a32ecd5cc472c7dd
Contents?: true
Size: 624 Bytes
Versions: 3
Compression:
Stored size: 624 Bytes
Contents
require File.expand_path('../../../helper', __FILE__) require 'rdiscount' describe('Zen::Controller::AdminController') do behaves_like :capybara it('Deny access to an admin URL when not logged in') do logout = Users::Controller::Users.r(:logout).to_s url = Categories::Controller::CategoryGroups.r(:index).to_s visit(logout) visit(url) current_path.should == Users::Controller::Users.r(:login).to_s end it('Access an admin URL when logged in') do url = Categories::Controller::CategoryGroups.r(:index).to_s capybara_login visit(url) current_path.should == url end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zen-0.3 | spec/zen/controller/admin_controller.rb |
zen-0.3b1 | spec/zen/controller/admin_controller.rb |
zen-0.3b | spec/zen/controller/admin_controller.rb |