test/commands/test_remote.rb in zold-0.14.28 vs test/commands/test_remote.rb in zold-0.14.29
- old
+ new
@@ -95,9 +95,13 @@
Dir.mktmpdir do |dir|
remotes = Zold::Remotes.new(file: File.join(dir, 'remotes.txt'))
score = Zold::Score.new(
time: Time.now, host: 'aa1.example.org', port: 9999, invoice: 'NOPREFIX4@ffffffffffffffff'
)
+ stub_request(:get, 'http://localhost:8883/version').to_return(
+ status: 200,
+ body: '0.0.0'
+ )
stub_request(:get, "http://#{score.host}:#{score.port}/remotes").to_return(
status: 200,
body: {
version: Zold::VERSION,
score: score.to_h,