# frozen_string_literal: true RSpec.describe SoapyCake::Response do let(:xml) do <<-EOD true 2 123 312 EOD end subject(:response) { described_class.new(xml.strip, false, 0) } it 'returns an enumerator' do expect(response.to_enum).to be_a(Enumerator) end it 'parses the CAKE XML structure properly' do expect(response.to_enum.to_a).to eq([ { id: '123' }, { id: '312' } ]) end end