Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
cavy / spec / features / client / client_spec.rb
Size: Mime:
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