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

[Brightbox] Use minitest in Brightbox module

Includes a simple test of Compute class.
This commit is contained in:
Paul Thornthwaite 2014-03-12 15:31:40 +00:00
parent 08b4f9a1b4
commit bc421ae96c
3 changed files with 29 additions and 1 deletions

View file

@ -1 +1,8 @@
require "bundler/gem_tasks"
require "rake/testtask"
task :default => :test
Rake::TestTask.new do |t|
t.pattern = File.join("test", "**", "*_test.rb")
end

View file

@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependency "shindo"
spec.add_development_dependency "minitest"
end

View file

@ -0,0 +1,21 @@
require "minitest/autorun"
require "fog/brightbox"
class Fog::Compute::BrightboxTest < Minitest::Test
def setup
@arguments = {}
@service = Fog::Compute::Brightbox.new(@arguments)
end
def test_respond_to_request
assert_respond_to @service, :request
end
def test_respond_to_request_access_token
assert_respond_to @service, :request_access_token
end
def test_respond_to_wrapped_request
assert_respond_to @service, :wrapped_request
end
end