Commit e48c6fab authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Make rake gitlab:test works

parent 267e8c73
namespace :gitlab do
desc "GITLAB | Run all tests"
task :test do
Rails.env = "test"
Rake::Task["db:setup"].invoke
Rake::Task["db:seed_fu"].invoke
Rake::Task["spinach"].invoke
Rake::Task["spec"].invoke
Rake::Task["jasmince:ci"].invoke
cmds = [
"rake db:setup",
"rake db:seed_fu",
"rake spinach",
"rake spec",
"rake jasmine:ci"
]
cmds.each do |cmd|
system(cmd + " RAILS_ENV=test")
raise "#{cmd} failed!" unless $?.exitstatus.zero?
end
end
end
WebMock.allow_net_connect!
Jasmine.configure do |config|
config.browser = :phantomjs
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment