Sha256: 9148fc88ce127c896009f9fb7b3b673ed0cf15b8d595eaf78a24cf510c2b1dc1

Contents?: true

Size: 642 Bytes

Versions: 2

Compression:

Stored size: 642 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-edit').click
    page.should have_content "Edit Page"
  end

  scenario "click on delete page" do
    click_link "Pages"
    page.find(:css, '.controls .btn-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

2 entries across 2 versions & 1 rubygems

Version Path
brightcontent-pages-2.0.33 spec/features/pages_index_spec.rb
brightcontent-pages-2.0.31 spec/features/pages_index_spec.rb