Sha256: ed9c1b8c903400d8e9d02af4f3308f86b33256a5aa6851a5f01bf1b7d5df86f6

Contents?: true

Size: 908 Bytes

Versions: 48

Compression:

Stored size: 908 Bytes

Contents

require 'webmock/rspec'


def a_delete(path, endpoint=ACTV::Default.endpoint)
  a_request(:delete, endpoint + path)
end

def a_get(path, endpoint=ACTV::Default.endpoint)
  a_request(:get, endpoint + path)
end

def a_post(path, endpoint=ACTV::Default.endpoint)
  a_request(:post, endpoint + path)
end

def a_put(path, endpoint=ACTV::Default.endpoint)
  a_request(:put, endpoint + path)
end

def stub_delete(path, endpoint=ACTV::Default.endpoint)
  stub_request(:delete, endpoint + path)
end

def stub_get(path, endpoint=ACTV::Default.endpoint)
  stub_request(:get, endpoint + path)
end

def stub_post(path, endpoint=ACTV::Default.endpoint)
  stub_request(:post, endpoint + path)
end

def stub_put(path, endpoint=ACTV::Default.endpoint)
  stub_request(:put, endpoint + path)
end

def fixture_path
  File.expand_path("../../fixtures", __FILE__)
end

def fixture(file)
  File.new(fixture_path + '/' + file)
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
actv-2.10.9 spec/support/helper.rb
actv-2.10.8 spec/support/helper.rb
actv-2.10.7 spec/support/helper.rb
actv-2.10.6 spec/support/helper.rb
actv-2.10.5 spec/support/helper.rb
actv-2.10.4 spec/support/helper.rb
actv-2.10.3 spec/support/helper.rb
actv-2.10.2 spec/support/helper.rb
actv-2.10.1 spec/support/helper.rb
actv-2.10.0 spec/support/helper.rb
actv-2.9.2 spec/support/helper.rb
actv-2.9.1 spec/support/helper.rb
actv-2.9.0 spec/support/helper.rb
actv-2.8.2 spec/support/helper.rb
actv-2.8.1 spec/support/helper.rb
actv-2.7.0 spec/support/helper.rb
actv-2.6.0 spec/support/helper.rb
actv-2.5.2 spec/support/helper.rb
actv-2.5.1 spec/support/helper.rb
actv-2.5.0 spec/support/helper.rb