describe Support::Services::VectorApi do
  describe ".active_accounting_period" do
    let(:valid_body) { { envelope: { response: { active_period: { id: 241 } } } } }
    let(:good_response) { instance_double("HTTParty::Response", body: valid_body.to_json) }

    it "returns the accounting period id" do
      allow(described_class).to receive(:get) { good_response }
      expect(described_class.active_accounting_period).to eql 241
    end
  end
end
