Sha256: 27e1db02e29febdda4d7a126cd5bcc995ad27a9911991b372ad9126d0e38e4ba

Contents?: true

Size: 766 Bytes

Versions: 31

Compression:

Stored size: 766 Bytes

Contents

require 'rails_helper'

describe PagesController do
  describe "#welcome", type: :request do

    it "renders the welcome page" do
      post_type_version = Pulitzer::PostType.named('Welcome').published_type_version
      version = post_type_version.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)
      partial_type_version = partial_type.post_type_versions.create(status: :published)
      ffs.partials.create(post_type_version_id: partial_type_version.id)
      get welcome_path slug: 'welcome'
      expect(response.status).to eq 200
    end

  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
pulitzer-0.15.31 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.30 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.29 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.28 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.27 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.26 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.25 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.24 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.23 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.22 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.21 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.20 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.19 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.18 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.17 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.16 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.15 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.14 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.13 spec/controllers/pages_controller_spec.rb
pulitzer-0.15.12 spec/controllers/pages_controller_spec.rb