Sha256: 4934b0602e665d82377d97bb1902af6ce98daf10db121dad1c75606f19a6ce4f

Contents?: true

Size: 675 Bytes

Versions: 19

Compression:

Stored size: 675 Bytes

Contents

require 'rails_helper'

describe Pulitzer::PostTypeVersionsController do
  routes { Pulitzer::Engine.routes }
  render_views

  let(:ptv){Pulitzer::PostTypeVersion.first}

  describe "#create", type: :request do
    it "exports a post type version" do
      get pulitzer.export_post_type_version_path id: ptv.id
      expect(response.status).to eq 200
      response_json = JSON.parse(response.body)
      expect(response_json['version_number']).to eq ptv.version_number
      expect(response_json['status']).to eq ptv.status
      expect(response_json["post_type_content_element_types_attributes"].length).to eq ptv.post_type_content_element_types.length
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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