test/commands/test_remote.rb in zold-0.31.5 vs test/commands/test_remote.rb in zold-0.31.6

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -# Copyright (c) 2018-2023 Zerocracy, Inc. +# Copyright (c) 2018-2023 Zerocracy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -93,10 +93,10 @@ ] }.to_json ) stub_request(:get, 'https://rubygems.org/api/v1/versions/zold/latest.json').to_return( status: 200, - body: '{"version": "9.9.9", "repo": "' + Zold::REPO + '"}' + body: "{\"version\": \"9.9.9\", \"repo\": \"#{Zold::REPO}\"}" ) log = TestLogger.new cmd = Zold::Remote.new(remotes: remotes, log: log) cmd.run(%w[remote clean]) cmd.run(['remote', 'add', zero.host, zero.port.to_s, '--skip-ping'])