[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.
This commit is contained in:
Paul Thornthwaite 2014-04-03 09:35:26 +01:00
parent 7e19b6e4ab
commit 2bd274eb23
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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