From 2bd274eb23babff2b738efb51059e3c08e4731e7 Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Thu, 3 Apr 2014 09:35:26 +0100 Subject: [PATCH] [Brightbox] Update testing to MiniTest::Spec Using spec form is going to be the standard way to testing (but relying on asserts). This update allows the test(s) to be picked up by the main rake task again. --- providers/brightbox/Rakefile | 2 +- .../fog/compute/brightbox_spec.rb} | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename providers/brightbox/{test/fog/compute/brightbox_test.rb => spec/fog/compute/brightbox_spec.rb} (80%) diff --git a/providers/brightbox/Rakefile b/providers/brightbox/Rakefile index 8e053bdff..32187fbfd 100644 --- a/providers/brightbox/Rakefile +++ b/providers/brightbox/Rakefile @@ -4,5 +4,5 @@ require "rake/testtask" task :default => :test Rake::TestTask.new do |t| - t.pattern = File.join("test", "**", "*_test.rb") + t.pattern = File.join("spec", "**", "*_spec.rb") end diff --git a/providers/brightbox/test/fog/compute/brightbox_test.rb b/providers/brightbox/spec/fog/compute/brightbox_spec.rb similarity index 80% rename from providers/brightbox/test/fog/compute/brightbox_test.rb rename to providers/brightbox/spec/fog/compute/brightbox_spec.rb index a2e0ac41d..f80b74eea 100644 --- a/providers/brightbox/test/fog/compute/brightbox_test.rb +++ b/providers/brightbox/spec/fog/compute/brightbox_spec.rb @@ -1,8 +1,8 @@ require "minitest/autorun" require "fog/brightbox" -class Fog::Compute::BrightboxTest < Minitest::Test - def setup +describe Fog::Compute::Brightbox do + before do @arguments = { :brightbox_auth_url => "http://localhost", :brightbox_api_url => "http://localhost", @@ -23,15 +23,15 @@ class Fog::Compute::BrightboxTest < Minitest::Test end end - def test_respond_to_request + it "responds to #request" do assert_respond_to @service, :request end - def test_respond_to_request_access_token + it "responds to #request_access_token" do assert_respond_to @service, :request_access_token end - def test_respond_to_wrapped_request + it "responds to #wrapped_request" do assert_respond_to @service, :wrapped_request end end