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

[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 task :default => :test
Rake::TestTask.new do |t| Rake::TestTask.new do |t|
t.pattern = File.join("test", "**", "*_test.rb") t.pattern = File.join("spec", "**", "*_spec.rb")
end end

View file

@ -1,8 +1,8 @@
require "minitest/autorun" require "minitest/autorun"
require "fog/brightbox" require "fog/brightbox"
class Fog::Compute::BrightboxTest < Minitest::Test describe Fog::Compute::Brightbox do
def setup before do
@arguments = { @arguments = {
:brightbox_auth_url => "http://localhost", :brightbox_auth_url => "http://localhost",
:brightbox_api_url => "http://localhost", :brightbox_api_url => "http://localhost",
@ -23,15 +23,15 @@ class Fog::Compute::BrightboxTest < Minitest::Test
end end
end end
def test_respond_to_request it "responds to #request" do
assert_respond_to @service, :request assert_respond_to @service, :request
end end
def test_respond_to_request_access_token it "responds to #request_access_token" do
assert_respond_to @service, :request_access_token assert_respond_to @service, :request_access_token
end end
def test_respond_to_wrapped_request it "responds to #wrapped_request" do
assert_respond_to @service, :wrapped_request assert_respond_to @service, :wrapped_request
end end
end end