Sha256: 548c7d49e27c3509065ca92cd656eea8a4fec9ccd29727585edd6c722413415a

Contents?: true

Size: 905 Bytes

Versions: 16

Compression:

Stored size: 905 Bytes

Contents

require 'test_helper'
require 'workarea/api/documentation_test'

module Workarea
  module Api
    module Admin
      class ReleaseChangesDocumentationTest < DocumentationTest
        include Workarea::Admin::IntegrationTest

        resource 'Release Changes'

        def test_and_document_create
          description 'Adding changes to a release'
          route admin_api.product_path(':id')
          explanation "release_id can be sent with any patch request \
            to resources that can be changed through releases"

          record_request do
            patch admin_api.product_path(create_product.id),
                    params: {
                      product: { name: 'foo' },
                      release_id: create_release.id
                    },
                    as: :json

            assert_equal(204, response.status)
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
workarea-api-4.5.6 admin/test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-admin-4.5.6 test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-4.5.5 admin/test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-admin-4.5.5 test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-4.5.4 admin/test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-admin-4.5.4 test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-4.5.3 admin/test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-admin-4.5.3 test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-4.5.2 admin/test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-admin-4.5.2 test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-4.5.0 admin/test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-admin-4.5.0 test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-4.4.7 admin/test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-admin-4.4.7 test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-4.4.6 admin/test/documentation/workarea/api/admin/release_changes_documentation_test.rb
workarea-api-admin-4.4.6 test/documentation/workarea/api/admin/release_changes_documentation_test.rb