Sha256: 6579bfe78c78c53e4cc859a791547a37f73499b197b4d31bbf8b4f3ecd72a379
Contents?: true
Size: 595 Bytes
Versions: 6
Compression:
Stored size: 595 Bytes
Contents
require 'rails_helper' describe PagesController do describe "#welcome", type: :request do it "renders the welcome page" do version = Pulitzer::PostType.named('Welcome').posts.find_by!(slug: 'welcome').get_active_version! ffs = version.free_form_sections.find_by name: 'Main Content' partial_type = Pulitzer::PostType.create(name: 'partial with no display', kind: Pulitzer::PostType.kinds[:partial], plural: false) ffs.partials.create(post_type_id: partial_type.id) get welcome_path slug: 'welcome' expect(response.status).to eq 200 end end end
Version data entries
6 entries across 6 versions & 1 rubygems