spec/ollama/commands/pull_spec.rb in ollama-ruby-0.0.0 vs spec/ollama/commands/pull_spec.rb in ollama-ruby-0.0.1
- old
+ new
@@ -16,11 +16,11 @@
)
end
it 'can perform' do
pull = described_class.new(name: 'llama3.1', stream: true)
- pull.client = client = double('client')
- expect(client).to receive(:request).with(
+ pull.client = ollama = double('Ollama::Client')
+ expect(ollama).to receive(:request).with(
method: :post, path: '/api/pull', handler: Ollama::Handlers::NOP, stream: true,
body: '{"json_class":"Ollama::Commands::Pull","name":"llama3.1","stream":true}'
)
pull.perform(Ollama::Handlers::NOP)
end