diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-03-22 21:39:09 -0500 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-03-28 10:59:54 -0500 |
commit | 880b53e0b44909b255008ca32df62120cc435595 (patch) | |
tree | 49b41e4eb0d183e91a2b7fe7eddaaf256e58e951 /lib/tasks | |
parent | 6460489babe3cd25358800804f6befc1bd242f22 (diff) | |
download | gitlab-ce-880b53e0b44909b255008ca32df62120cc435595.tar.gz |
Reset container width when switching to pipelines MR tab
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/29539
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/karma.rake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/tasks/karma.rake b/lib/tasks/karma.rake index 40465ea3bf0..62a12174efa 100644 --- a/lib/tasks/karma.rake +++ b/lib/tasks/karma.rake @@ -1,9 +1,10 @@ unless Rails.env.production? namespace :karma do desc 'GitLab | Karma | Generate fixtures for JavaScript tests' - RSpec::Core::RakeTask.new(:fixtures) do |t| + RSpec::Core::RakeTask.new(:fixtures, [:pattern]) do |t, args| + args.with_defaults(pattern: 'spec/javascripts/fixtures/*.rb') ENV['NO_KNAPSACK'] = 'true' - t.pattern = 'spec/javascripts/fixtures/*.rb' + t.pattern = args[:pattern] t.rspec_opts = '--format documentation' end |