require 'spec_helper' module GoTransverseTractApi RSpec.describe GeneralLedger::GLAggregateBatch do before(:each) { http_auth } let(:eid) { '4096' } let(:response) { {a: 'b', c: 'd'} } context ".update" do it "updates an aggregate batch" do data = { eid: eid, exported: 'true' } allow(subject).to receive(:update).with(eid, data).and_return(response) expect(subject.update(eid, data)).to eq(response) end end end end