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

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.
This commit is contained in:
Paul Thornthwaite 2015-03-14 23:54:55 +00:00
parent fdbd28305b
commit 706f873c53
32 changed files with 38 additions and 60 deletions

View file

@ -72,6 +72,7 @@ Gem::Specification.new do |s|
s.add_development_dependency("fission")
s.add_development_dependency("google-api-client", "~> 0.6", ">= 0.6.2")
s.add_development_dependency("minitest")
s.add_development_dependency("minitest-stub-const")
s.add_development_dependency("opennebula")
s.add_development_dependency("pry")
s.add_development_dependency("rake")

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Account do
Fog::Account.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Billing do
Fog::Billing.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
require "helpers/bin"

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
require "fog/bin"
describe Fog do

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::CDN do
Fog::CDN.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Compute do
Fog::Compute.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::DNS do
Fog::DNS.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Identity do
Fog::Identity.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Image do
Fog::Image.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Metering do
Fog::Metering.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Monitoring do
Fog::Monitoring.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Network do
Fog::Network.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Orchestration do
Fog::Orchestration.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Storage do
Fog::Storage.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Support do
Fog::Support.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::Volume do
Fog::Volume.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
describe Fog::VPN do
Fog::VPN.providers.each do |provider|

View file

@ -1,5 +1,4 @@
require "minitest/autorun"
require "fog"
require "spec_helper"
# @note This is going to be part of fog-xml eventually
describe Fog::XML::Connection do

7
spec/spec_helper.rb Normal file
View file

@ -0,0 +1,7 @@
require "minitest/autorun"
require "minitest/spec"
require "minitest/stub_const"
$LOAD_PATH.unshift "lib"
require "fog"