mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
706f873c53
We require setting up MiniSpec and `fog` in each spec and this just feels cleaner way of doing it. Adding Coverage next and we don't want the code in EVERY spec.
14 lines
425 B
Ruby
14 lines
425 B
Ruby
require "spec_helper"
|
|
|
|
describe Fog::CDN do
|
|
Fog::CDN.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::CDN[provider] }
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|