Sha256: 0080c106784f2e2ffb4319a641529c64d76af91073130f5b49537a9bc69f69b3

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brightcontent-pages-2.0.27 spec/features/pages_index_spec.rb