Sha256: bde777cedd6f35aa685b679e6426984936d4228ef5a8d2bf3e383dc4d8ead826
Contents?: true
Size: 733 Bytes
Versions: 3
Compression:
Stored size: 733 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe 'User permissions' do dataset :users it 'should allow administrators to login' do navigate_to '/admin/login' submit_form :user => {:login => 'admin', :password => 'password'} response.should be_showing('/admin/pages') end it 'should allow developers to login' do navigate_to '/admin/login' submit_form :user => {:login => 'developer', :password => 'password'} response.should be_showing('/admin/pages') end it 'should allow users to login' do navigate_to '/admin/login' submit_form :user => {:login => 'existing', :password => 'password'} response.should be_showing('/admin/pages') end end
Version data entries
3 entries across 3 versions & 1 rubygems