Sha256: 927215f51bfcd98da693793b1314ada7b0810f396218dc92142808d4f0a68140
Contents?: true
Size: 634 Bytes
Versions: 3
Compression:
Stored size: 634 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 .edit').click page.should have_content "Edit page" end scenario "click on delete page" do click_link "Pages" page.find(:css, '.controls .delete').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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
brightcontent-pages-2.0.30 | spec/features/pages_index_spec.rb |
brightcontent-pages-2.0.29 | spec/features/pages_index_spec.rb |
brightcontent-pages-2.0.28 | spec/features/pages_index_spec.rb |