Sha256: 9f00842c19b329266f4a14a48410b89498d95a10e6e0b70e64b7580842fc72bd
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 Bytes
Contents
#!/usr/bin/env ruby require_relative "webmocks" trollolo_bin = File.expand_path("../../../bin/trollolo", __FILE__) spec_data_dir = File.expand_path("../../data", __FILE__) STDERR.puts "Updating web mock data" webmock_mapping.each do |mapping| url = mapping[:path] + parameters_as_string(mapping) file = mapping[:file] cmd = "#{trollolo_bin} get-raw '#{url}' >#{spec_data_dir}/#{file}" puts cmd system cmd end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trollolo-0.0.5 | spec/unit/support/update_webmock_data |
trollolo-0.0.4 | spec/unit/support/update_webmock_data |