1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/fog/bin/brightbox_spec.rb
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

30 lines
715 B
Ruby

require "spec_helper"
require "fog/bin"
require "helpers/bin"
describe Brightbox do
include Fog::BinSpec
let(:subject) { Brightbox }
describe "#services" do
it "includes all services" do
assert_includes Brightbox.services, :compute
assert_includes Brightbox.services, :storage
end
end
describe "#class_for" do
describe "when requesting compute service" do
it "returns correct class" do
assert_equal Fog::Compute::Brightbox, Brightbox.class_for(:compute)
end
end
describe "when requesting storage service" do
it "returns correct class" do
assert_equal Fog::Storage::Brightbox, Brightbox.class_for(:storage)
end
end
end
end