spec/fog/compute/brightbox_spec.rb in fog-brightbox-1.0.0.rc1 vs spec/fog/compute/brightbox_spec.rb in fog-brightbox-1.0.0.rc2

- old
+ new

@@ -1,8 +1,8 @@ require "spec_helper" -describe Fog::Compute::Brightbox do +describe Fog::Brightbox::Compute do describe "when global config is available" do before do @arguments = { :brightbox_auth_url => "http://localhost", :brightbox_api_url => "http://localhost", @@ -17,11 +17,11 @@ def @credential_guard.reject {} end Fog.stub :credentials, @credential_guard do - @service = Fog::Compute::Brightbox.new(@arguments) + @service = Fog::Brightbox::Compute.new(@arguments) end end it "responds to #request" do assert_respond_to @service, :request @@ -38,11 +38,11 @@ describe "when created without required arguments" do it "raises an error" do Fog.stub :credentials, {} do assert_raises ArgumentError do - Fog::Compute::Brightbox.new({}) + Fog::Brightbox::Compute.new({}) end end end end @@ -51,19 +51,19 @@ @options = { :brightbox_client_id => "cli-12345", :brightbox_secret => "1234567890" } @config = Fog::Brightbox::Config.new(@options) - @service = Fog::Compute::Brightbox.new(@config) + @service = Fog::Brightbox::Compute.new(@config) pass end end describe "when created with Config missing required settings" do it "raises ArgumentError"do @config = Fog::Brightbox::Config.new({}) assert_raises ArgumentError do - @service = Fog::Compute::Brightbox.new(@config) + @service = Fog::Brightbox::Compute.new(@config) end end end end