Sha256: e890593cbff031e8025767f97f1e165cae27c2ebbf0bceb923563e4095802c0a
Contents?: true
Size: 648 Bytes
Versions: 3
Compression:
Stored size: 648 Bytes
Contents
require 'spec_helper' RSpec.describe MobilizeAmericaClient::Client::Enums do let(:standard_headers) { {'Content-Type' => 'application/json'} } subject { MobilizeAmericaClient::Client.new } let(:base_url) { "https://#{MobilizeAmericaClient::Client::API_DOMAIN}#{MobilizeAmericaClient::Client::API_BASE_PATH}" } describe '#enums' do let(:enums_url) { "#{base_url}/enums" } let(:response) { {'hello' => 'world'} } it 'should call the endpoint and return JSON' do stub_request(:get, enums_url).with(headers: standard_headers).to_return(body: response.to_json) expect(subject.enums).to eq response end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mobilize-america-client-0.5.1 | spec/client/enums_spec.rb |
mobilize-america-client-0.5.0 | spec/client/enums_spec.rb |
mobilize-america-client-0.4.0 | spec/client/enums_spec.rb |