Sha256: 357821a895b9ef88165cdadc17b645b8ca1a5b33041b8684c996db085422f3bd
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true require "rails_helper" RSpec.describe "Backend - Pages (HTML)", type: :feature do describe "deletion" do before do stub_authorization! create(:page, title: "Delete Me") create(:page, title: "Published Page") end it "displays success message" do visit "/backend/pages" within("tbody tr:eq(1)") { click_on "Destroy" } expect(page).to have_content("Page was successfully destroyed.") end it "does not list deleted Page" do visit "/backend/pages" within("tbody tr:eq(1)") { click_on "Destroy" } within("tbody tr:eq(1)") do expect(page).not_to have_content("Delete Me") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.4.0 | spec/features/backend/pages/delete_spec.rb |