spec/zen/package/users/helper/acl.rb in zen-0.3 vs spec/zen/package/users/helper/acl.rb in zen-0.4
- old
+ new
@@ -1,9 +1,9 @@
require File.expand_path('../../../../../helper', __FILE__)
require File.join(Zen::FIXTURES, 'package', 'users', 'helper', 'acl')
-describe('Ramaze::Helper::ACL') do
+describe 'Ramaze::Helper::ACL' do
behaves_like :capybara
visit(Users::Controller::Users.r(:logout).to_s)
# Update the permissions before logging in as they're cached in the session.
@@ -13,23 +13,23 @@
Users::Model::UserGroup[:slug => 'administrators'] \
.update(:super_group => false)
capybara_login
- it('Allow for a permission') do
+ it 'Allow for a permission' do
visit('/admin/spec-acl-helper')
page.has_content?('not allowed').should == false
page.has_content?('allowed').should == true
end
- it('Deny for a missing permission') do
+ it 'Deny for a missing permission' do
visit('/admin/spec-acl-helper/invalid')
page.has_content?('not allowed').should == true
end
- it('Respond for a missing permission') do
+ it 'Respond for a missing permission' do
visit('/admin/spec-acl-helper/respond_message')
page.has_content?(lang('zen_general.errors.not_authorized')).should == true
page.status_code.should == 403
end