mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
More specs to cover Fog
methods
This commit is contained in:
parent
8e6ecc1857
commit
d31b5905c4
2 changed files with 18 additions and 0 deletions
|
@ -149,4 +149,14 @@ describe Fog do
|
||||||
assert_includes Fog.available_providers, "Zerigo" if Zerigo.available?
|
assert_includes Fog.available_providers, "Zerigo" if Zerigo.available?
|
||||||
end
|
end
|
||||||
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
|
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…
Add table
Reference in a new issue