Sha256: b0c8977ed304a34fffbcab81a5a2a3f8e6103261723b9f904efab5385e10f0c4
Contents?: true
Size: 424 Bytes
Versions: 25
Compression:
Stored size: 424 Bytes
Contents
require 'spec_helper' RSpec.describe Ollama::Handlers::Collector do it 'has .call' do expect_any_instance_of(described_class).to receive(:call).with(:foo) described_class.call(:foo) end it 'can collect responses in an array' do collector = described_class.new(output:) response = Ollama::Response[foo: 'testing'] collector.call(response) expect(collector.result).to eq [ response ] end end
Version data entries
25 entries across 25 versions & 1 rubygems