diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2019-04-10 23:25:18 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-04-10 23:51:14 +0300 |
commit | fb8908d961174d096aa1e44b3f7b2ca71f4c1c2b (patch) | |
tree | e677e8e5f8afd7113bf99a43ba38ee7726ef2278 /lib/tasks | |
parent | c57529556c2ba3053e3a622efc2f5b6eeaabe009 (diff) |
Removed also the in the meanwhile introduced rake task
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/karma.rake | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/tasks/karma.rake b/lib/tasks/karma.rake index 02987f2beef..2dc14183fa3 100644 --- a/lib/tasks/karma.rake +++ b/lib/tasks/karma.rake @@ -1,7 +1,7 @@ unless Rails.env.production? namespace :karma do desc 'GitLab | Karma | Generate fixtures for JavaScript tests' - task fixtures: ['karma:copy_emojis_from_public_folder', 'karma:rspec_fixtures'] + task fixtures: ['karma:rspec_fixtures'] desc 'GitLab | Karma | Generate fixtures using RSpec' RSpec::Core::RakeTask.new(:rspec_fixtures, [:pattern]) do |t, args| @@ -11,14 +11,6 @@ unless Rails.env.production? t.rspec_opts = '--format documentation' end - desc 'GitLab | Karma | Copy emojis file' - task :copy_emojis_from_public_folder do - # Copying the emojis.json from the public folder - fixture_file_name = Rails.root.join('spec/javascripts/fixtures/emojis/emojis.json') - FileUtils.mkdir_p(File.dirname(fixture_file_name)) - FileUtils.cp(Rails.root.join('public/-/emojis/1/emojis.json'), fixture_file_name) - end - desc 'GitLab | Karma | Run JavaScript tests' task tests: ['yarn:check'] do sh "yarn run karma" do |ok, res| |