Skip to content
Snippets Groups Projects
Unverified Commit 70fc8517 authored by Tim Zallmann's avatar Tim Zallmann Committed by John Skarbek
Browse files

Removed also the in the meanwhile introduced rake task

parent 1ccb582b
No related branches found
No related tags found
No related merge requests found
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|
Loading
Loading
@@ -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|
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment