spec/ollama/commands/show_spec.rb in ollama-ruby-0.1.0 vs spec/ollama/commands/show_spec.rb in ollama-ruby-0.2.0
- old
+ new
@@ -10,19 +10,19 @@
show = described_class.new(name: 'llama3.1')
expect(show.as_json).to include(
name: 'llama3.1', stream: false
)
expect(show.to_json).to eq(
- '{"json_class":"Ollama::Commands::Show","name":"llama3.1","stream":false}'
+ '{"name":"llama3.1","stream":false}'
)
end
it 'can perform' do
show = described_class.new(name: 'llama3.1')
show.client = ollama = double('Ollama::Client')
expect(ollama).to receive(:request).with(
method: :post, path: '/api/show', handler: Ollama::Handlers::NOP ,stream: false,
- body: '{"json_class":"Ollama::Commands::Show","name":"llama3.1","stream":false}'
+ body: '{"name":"llama3.1","stream":false}'
)
show.perform(Ollama::Handlers::NOP)
end
end