提交 99467887 编写于 作者: Y Yves Senn

select the AR adapter through `bin/test`.

上级 81ae632d
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
module Minitest
def self.plugin_active_record_options(opts, options)
opts.separator ""
opts.separator "Active Record options:"
opts.on("-a", "--adapter [ADAPTER]",
"Run tests using a specific adapter (sqlite3, sqlite3_mem, mysql, mysql2, postgresql)") do |adapter|
ENV["ARCONN"] = adapter.strip
end
opts
end
end
Minitest.extensions.unshift 'active_record'
exit Minitest.run(ARGV)
#!/usr/bin/env ruby
COMPONENT_ROOT = File.expand_path("../../", __FILE__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
exit Minitest.run(ARGV)
......@@ -8,5 +8,3 @@ def self.root
@root ||= Pathname.new(COMPONENT_ROOT)
end
end
exit Minitest.run(ARGV)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册