summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-29 17:43:33 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-29 17:43:33 +0300
commit9f8d50e99699accc1898fad25eee5d536505682d (patch)
tree6603c1c381ff99ba9d3a64d3e911733bf004e475 /lib
parentfb71426cdbda99e83b3bcfdcd2c8cf50d7e7c9e0 (diff)
downloadgitlab-ce-9f8d50e99699accc1898fad25eee5d536505682d.tar.gz
gitlab:test rake task now includes jasmine and db setup
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/test.rake11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/test.rake b/lib/tasks/gitlab/test.rake
index 03b3fc5ea20..38fa8b1a208 100644
--- a/lib/tasks/gitlab/test.rake
+++ b/lib/tasks/gitlab/test.rake
@@ -1,4 +1,11 @@
namespace :gitlab do
- desc "GITLAB | Run both spinach and rspec"
- task test: ['spinach', 'spec']
+ 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
+ end
end