summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-06 15:31:24 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-06 15:31:24 -0400
commit0a99e6e2facee4126509c41b987aa88f1520626e (patch)
tree35671f1ca3ddc40afdc02789f0abd43bbc82b56f
parentd5ee54df163e0b2e613701ba107d6163be656930 (diff)
downloadgitlab-ce-0a99e6e2facee4126509c41b987aa88f1520626e.tar.gz
Remove 'jasmine' gem
jasmine-rails still requires it as a dependency, but for some reason running `rake jasmine:ci` produced test failures but `rake spec:javascript` didn't.
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock6
-rw-r--r--lib/tasks/jasmine.rake12
3 files changed, 12 insertions, 7 deletions
diff --git a/Gemfile b/Gemfile
index 05e26f5b72d..f950c5be154 100644
--- a/Gemfile
+++ b/Gemfile
@@ -248,7 +248,6 @@ group :development, :test do
# PhantomJS driver for Capybara
gem 'poltergeist', '~> 1.5.1'
- gem 'jasmine', '~> 2.2.0'
gem 'jasmine-rails'
gem "spring", '~> 1.3.1'
diff --git a/Gemfile.lock b/Gemfile.lock
index 3334917797e..6f58c4f4fda 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -290,11 +290,6 @@ GEM
i18n (0.7.0)
ice_cube (0.11.1)
ice_nine (0.10.0)
- jasmine (2.2.0)
- jasmine-core (~> 2.2)
- phantomjs
- rack (>= 1.2.1)
- rake
jasmine-core (2.2.0)
jasmine-rails (0.10.8)
jasmine-core (>= 1.3, < 3.0)
@@ -726,7 +721,6 @@ DEPENDENCIES
hipchat (~> 1.5.0)
html-pipeline (~> 1.11.0)
httparty
- jasmine (~> 2.2.0)
jasmine-rails
jquery-atwho-rails (~> 1.0.0)
jquery-rails
diff --git a/lib/tasks/jasmine.rake b/lib/tasks/jasmine.rake
new file mode 100644
index 00000000000..9e2cceffa19
--- /dev/null
+++ b/lib/tasks/jasmine.rake
@@ -0,0 +1,12 @@
+# Since we no longer explicitly require the 'jasmine' gem, we lost the
+# `jasmine:ci` task used by GitLab CI jobs.
+#
+# This provides a simple alias to run the `spec:javascript` task from the
+# 'jasmine-rails' gem.
+task jasmine: ['jasmine:ci']
+
+namespace :jasmine do
+ task :ci do
+ Rake::Task['spec:javascript'].invoke
+ end
+end