Sha256: bdfedcd108ebb4b4d1412985565b14a1279b4c308b00dc1c3cb2d3915c3060aa
Contents?: true
Size: 793 Bytes
Versions: 4
Compression:
Stored size: 793 Bytes
Contents
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
4 entries across 4 versions & 1 rubygems