1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #3334 from fog/more_abstraction_specs

More specs to cover `Fog` methods
This commit is contained in:
Paul Thornthwaite 2014-12-11 09:36:29 +00:00
commit fedb21dfd8
2 changed files with 18 additions and 0 deletions

View file

@ -152,4 +152,14 @@ describe Fog do
assert_includes Fog.available_providers, "Zerigo" if Zerigo.available?
end
end
describe "#services" do
it "returns Hash of services" do
assert_kind_of Hash, Fog.services
assert_includes Fog.services, :cdn
assert_includes Fog.services, :compute
assert_includes Fog.services, :dns
assert_includes Fog.services, :storage
end
end
end

8
spec/fog/compute_spec.rb Normal file
View file

@ -0,0 +1,8 @@
require "minitest/autorun"
require "fog"
describe Fog::Compute do
it "responds to []" do
assert_respond_to Fog::Compute, :[]
end
end