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:
commit
fedb21dfd8
2 changed files with 18 additions and 0 deletions
|
@ -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
8
spec/fog/compute_spec.rb
Normal 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
|
Loading…
Reference in a new issue