diff options
author | Mike Greiling <mike@pixelcog.com> | 2019-07-18 01:17:37 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-07-19 10:27:14 +0300 |
commit | faa17d526371a34325705b8de9594e4e9df03298 (patch) | |
tree | 80cdc2603cb0e1da0edcd9310a812b64b630a08e /lib/tasks/karma.rake | |
parent | 25fa78e2f9205427274772ff620d59cc9162400c (diff) |
Rename the karma:fixtures task
Introduces frontend:fixtures rake task to replace
karma:fixtures and update documentation and CI scripts
to match
Diffstat (limited to 'lib/tasks/karma.rake')
-rw-r--r-- | lib/tasks/karma.rake | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/tasks/karma.rake b/lib/tasks/karma.rake index 2dc14183fa3..36590010406 100644 --- a/lib/tasks/karma.rake +++ b/lib/tasks/karma.rake @@ -1,15 +1,8 @@ unless Rails.env.production? namespace :karma do + # alias exists for legacy reasons desc 'GitLab | Karma | Generate fixtures for JavaScript tests' - task fixtures: ['karma:rspec_fixtures'] - - desc 'GitLab | Karma | Generate fixtures using RSpec' - RSpec::Core::RakeTask.new(:rspec_fixtures, [:pattern]) do |t, args| - args.with_defaults(pattern: '{spec,ee/spec}/javascripts/fixtures/*.rb') - ENV['NO_KNAPSACK'] = 'true' - t.pattern = args[:pattern] - t.rspec_opts = '--format documentation' - end + task fixtures: ['frontend:fixtures'] desc 'GitLab | Karma | Run JavaScript tests' task tests: ['yarn:check'] do |