Sha256: 0af23de120d4b5a7a352945b222e3d570f0b59728527be4077405656ad652265

Contents?: true

Size: 640 Bytes

Versions: 16

Compression:

Stored size: 640 Bytes

Contents

require 'test_helper'

module Workarea
  module Api
    module Storefront
      class ContactsIntegrationTest < IntegrationTest
        setup :set_contact_params

        def set_contact_params
          @contact_params = {
            name: 'Name',
            email: 'email@example.com',
            order_id: 'OrderID',
            subject: :orders,
            message: 'Message'
          }
        end

        def test_create_inquiries
          data = @contact_params
          assert_difference 'Inquiry.count', 1 do
            post storefront_api.contacts_path, params: data
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
workarea-api-4.5.6 storefront/test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-storefront-4.5.6 test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-4.5.5 storefront/test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-storefront-4.5.5 test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-4.5.4 storefront/test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-storefront-4.5.4 test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-4.5.3 storefront/test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-storefront-4.5.3 test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-4.5.2 storefront/test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-storefront-4.5.2 test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-4.5.0 storefront/test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-storefront-4.5.0 test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-4.4.7 storefront/test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-storefront-4.4.7 test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-4.4.6 storefront/test/integration/workarea/api/storefront/contacts_integration_test.rb
workarea-api-storefront-4.4.6 test/integration/workarea/api/storefront/contacts_integration_test.rb