Sha256: 02833763e3b4cb938b2285c531ee208e74f3fde9baefc2a5738768c0fdef52fc
Contents?: true
Size: 643 Bytes
Versions: 24
Compression:
Stored size: 643 Bytes
Contents
require 'spec_helper' feature "Pages index" do background do sign_in create(:page, name: "Test page") end scenario "click on edit page" do click_link "Pages" page.find(:css, '.controls .btn-primary').click page.should have_content "Edit page" end scenario "click on delete page" do click_link "Pages" page.find(:css, '.controls .btn-danger').click page.should_not have_content "Test page" page.should have_content "successfully" end scenario "does not paginate" do 40.times { create(:page) } click_link "Pages" page.should have_css(".sortable_tree li", :count => 41) end end
Version data entries
24 entries across 24 versions & 1 rubygems