Repository URL to install this package:
|
Version:
0.0.2 ▾
|
require 'spec_helper'
describe 'signed in client' do
before(:each) do
log_in('client')
end
after(:each) do
log_out
end
it "should allow the user to go to the admin page" do
visit '/admin'
page.should have_content('Website Dashboard')
end
it "should allow the user to go to the pages page" do
visit '/admin'
click_link 'admin-pages'
page.should have_content('Website Pages')
end
end