test/helper.rb in solusvm-0.10.1 vs test/helper.rb in solusvm-1.0.0.beta
- old
+ new
@@ -6,10 +6,11 @@
rescue LoadError
end
require 'solusvm'
require 'fake_web'
+require 'mocha'
class Test::Unit::TestCase
def load_response(name)
File.read(File.join(File.dirname(__FILE__), "fixtures/#{name}.txt"))
end
@@ -22,8 +23,13 @@
{:id => 'api_id', :key => 'api_key'}
end
def setup_solusvm
Solusvm.config(api_login[:id], api_login[:key], :url => 'http://www.example.com/api')
+ end
+
+ def cli_expand_base_arguments(options)
+ arguments = ["--api-login", "thelogin", "--api-key", "thekey", "--api-url", "theurl"]
+ options + arguments
end
end