Sha256: c74b7c3ccf3eec277b9bc5e07ebec650cc6ad30492af063c1c93606a4c8d8f33

Contents?: true

Size: 300 Bytes

Versions: 14

Compression:

Stored size: 300 Bytes

Contents

module HubspotApiHelpers
  def hubspot_api_url(path)
    URI.join(Hubspot::Config.base_url, path)
  end

  def assert_hubspot_api_request(method, path, options = {})
    assert_requested(method, /#{hubspot_api_url(path)}/, options)
  end
end

RSpec.configure do |c|
  c.include HubspotApiHelpers
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hubspot-api-ruby-0.19.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.18.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.17.1 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.17.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.16.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.15.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.14.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.13.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.12.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.11.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.10.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.9.0 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.8.1 spec/support/hubspot_api_helpers.rb
hubspot-api-ruby-0.8.0 spec/support/hubspot_api_helpers.rb