Revert test
This commit is contained in:
parent
3d4a79f2ea
commit
8d542100a8
@ -67,13 +67,16 @@ RSpec.describe CurlDownloadStrategy do
|
|||||||
context "with a generalized fake user agent" do
|
context "with a generalized fake user agent" do
|
||||||
alias_matcher :a_string_matching, :match
|
alias_matcher :a_string_matching, :match
|
||||||
|
|
||||||
let(:specs) { { user_agent: "fake" } }
|
let(:specs) { { user_agent: :fake } }
|
||||||
|
|
||||||
it "adds the appropriate curl args" do
|
it "adds the appropriate curl args" do
|
||||||
expect(strategy).to receive(:system_command)
|
expect(strategy).to receive(:system_command)
|
||||||
.with(
|
.with(
|
||||||
/curl/,
|
/curl/,
|
||||||
hash_including(args: array_including_cons("--user-agent", "fake")),
|
hash_including(args: array_including_cons(
|
||||||
|
"--user-agent",
|
||||||
|
a_string_matching(/Mozilla.*Mac OS X 10_15_7.*AppleWebKit/),
|
||||||
|
)),
|
||||||
)
|
)
|
||||||
.at_least(:once)
|
.at_least(:once)
|
||||||
.and_return(instance_double(SystemCommand::Result, success?: true, stdout: "", assert_success!: nil))
|
.and_return(instance_double(SystemCommand::Result, success?: true, stdout: "", assert_success!: nil))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user