Commit e48c6fab authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Make rake gitlab:test works

parent 267e8c73
namespace :gitlab do namespace :gitlab do
desc "GITLAB | Run all tests" desc "GITLAB | Run all tests"
task :test do task :test do
Rails.env = "test" cmds = [
Rake::Task["db:setup"].invoke "rake db:setup",
Rake::Task["db:seed_fu"].invoke "rake db:seed_fu",
Rake::Task["spinach"].invoke "rake spinach",
Rake::Task["spec"].invoke "rake spec",
Rake::Task["jasmince:ci"].invoke "rake jasmine:ci"
]
cmds.each do |cmd|
system(cmd + " RAILS_ENV=test")
raise "#{cmd} failed!" unless $?.exitstatus.zero?
end
end end
end end
WebMock.allow_net_connect!
Jasmine.configure do |config| Jasmine.configure do |config|
config.browser = :phantomjs config.browser = :phantomjs
end 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