Sha256: 1593cb4c9e5409d8a68fa49180ce1a71b7b9e61edea0792da1615ced2a018572
Contents?: true
Size: 825 Bytes
Versions: 3
Compression:
Stored size: 825 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe UplandMobileCommonsRest::Campaigns do let(:client) { UplandMobileCommonsRest::Client.new(username: 'username', password: 'password') } subject { UplandMobileCommonsRest::Campaigns.new(client: client) } it 'should initialize' do expect(subject.client).to eq(client) end context 'with credentials' do let(:username) { 'username' } let(:password) { 'password' } describe 'list' do let(:response_body) { fixture('campaigns/list.xml') } before(:each) do stub_upland_mobile_commons_request('campaigns', method: :get).to_return(status: 200, body: response_body) end it 'should return a list of campaigns' do list = subject.list expect(list).to be_a(Enumerable) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
upland_mobile_commons_rest-0.3.1 | spec/campaigns_spec.rb |
upland_mobile_commons_rest-0.3.0 | spec/campaigns_spec.rb |
upland_mobile_commons_rest-0.2.0 | spec/campaigns_spec.rb |