Sha256: 4fb4f57aeb3ea748927ab63a873d9ebbc523246d28a965aa9bbf122f95e111fe

Contents?: true

Size: 936 Bytes

Versions: 3

Compression:

Stored size: 936 Bytes

Contents

require 'spec_helper'

describe Rexpense::Http do
  subject { Rexpense::Http.new('8cd049b4afca9213fb2455528394ab2fb0bc34f5c905f33c') }

  describe '#get' do
    let(:http_method) { :get }
    let(:url) { '/organizations/68/tags' }
    let(:params) { {} }

    it_behaves_like 'available http request methods'
  end

  describe '#post' do
    let(:http_method) { :post }
    let(:url) { '/organizations/68/tags' }
    let(:params) { { name: 'Rexpense gem client' } }

    it_behaves_like 'available http request methods'
  end

  describe '#put' do
    let(:http_method) { :put }
    let(:url) { '/organizations/68/tags/172' }
    let(:params) { { name: 'Rexpense gem client 02' } }

    it_behaves_like 'available http request methods'
  end

  describe '#delete' do
    let(:http_method) { :delete }
    let(:url) { '/organizations/68/tags/114' }
    let(:params) { {} }

    it_behaves_like 'available http request methods'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rexpense-2.1.0 spec/lib/rexpense/http_spec.rb
rexpense-2.0.0 spec/lib/rexpense/http_spec.rb
rexpense-1.0.0 spec/lib/rexpense/http_spec.rb