mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
16 lines
444 B
Ruby
16 lines
444 B
Ruby
|
require "minitest/autorun"
|
||
|
require "fog"
|
||
|
|
||
|
describe Fog::VPN do
|
||
|
Fog::VPN.providers.each do |provider|
|
||
|
describe "when #{provider} is passed with no available credentials" do
|
||
|
it "returns ArgumentError" do
|
||
|
# Stub credentials so you still see errors where the tester really has credentials
|
||
|
Fog.stub :credentials, {} do
|
||
|
assert_raises(ArgumentError) { Fog::VPN[provider] }
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|