Commit Graph

2 Commits

Author SHA1 Message Date
Paul Thornthwaite 706f873c53 DRY up specs with `spec_helper`
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.
2015-03-15 00:47:24 +00:00
Paul Thornthwaite fcd22c9a9a Test service abstraction code loading
The abstraction modules e.g. `Fog::Compute` have a list of registered
providers. All of these providers should be loaded correctly when
accessed with `Fog::Service[:provider]`

These tests hit each endpoint expecting `ArgumentError` from each
provider caused by the lack of credentials.

Credentials are stubbed out to not cause false results when the test
environment does have credentials for a service.

Some services do not have requirements so do not raise the expected
error. These special cases are just asserted. If they are not loaded the
specs fail again.
2014-12-18 09:49:20 +00:00