Sha256: 8f01947cf65fec0ebad1e2ce92d50ceb3fa0ece6fa6c978eea08b24f81a64a1e
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true require "rails_helper" RSpec.describe "Backend - Collection (HTML)", type: :feature do describe "show" do before { stub_authorization! } describe "is available" do before do create(:collection, slug: "amazing", name: "Amazing Collection") end it "finds the Collection name" do visit "/backend/collections/amazing" expect(page).to have_content("Name: Amazing Collection") end it "finds the Collection slug" do visit "/backend/collections/amazing" expect(page).to have_content("Slug: amazing") end end describe "is not available" do it "returns 404 when it does not exist" do visit "/backend/collections/unknown" expect(page) .to have_content("Page not found. Could not find what was requested") end it "displays error message when deleted" do visit "/backend/collections/deleted-collection" expect(page) .to have_content("Page not found. Could not find what was requested") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.4.0 | spec/features/backend/collections/show_spec.rb |