Skip to content

Commit 35d20e2

Browse files
committed
Client spec fix for when env var is set
1 parent 523759f commit 35d20e2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spec/client_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
end
2525

2626
it "raises an error when no api key is supplied" do
27-
expect { CloudConvert::Client.new }.to raise_error(Schemacop::Exceptions::ValidationError)
27+
with_env CLOUDCONVERT_API_KEY: nil do
28+
expect { CloudConvert::Client.new }.to raise_error(Schemacop::Exceptions::ValidationError)
29+
end
2830
end
2931

3032
it "reads the sandbox bool out of attrs" do

0 commit comments

Comments
 (0)