diff options
author | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
commit | 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch) | |
tree | c3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /lib/tasks/spec.rake | |
parent | f6453eca992a9c142268e78ac782cef98110d183 (diff) | |
download | gitlab-ce-tc-standard-gem.tar.gz |
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I
decided to try https://github.com/testdouble/standard on our codebase.
It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'lib/tasks/spec.rake')
-rw-r--r-- | lib/tasks/spec.rake | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/tasks/spec.rake b/lib/tasks/spec.rake index 2eddcb3c777..f7d47c1b945 100644 --- a/lib/tasks/spec.rake +++ b/lib/tasks/spec.rake @@ -1,56 +1,56 @@ -Rake::Task["spec"].clear if Rake::Task.task_defined?('spec') +Rake::Task["spec"].clear if Rake::Task.task_defined?("spec") namespace :spec do - desc 'GitLab | Rspec | Run request specs' + desc "GitLab | Rspec | Run request specs" task :api do cmds = [ - %w(rake gitlab:setup), - %w(rspec spec --tag @api) + %w[rake gitlab:setup], + %w[rspec spec --tag @api], ] run_commands(cmds) end - desc 'GitLab | Rspec | Run feature specs' + desc "GitLab | Rspec | Run feature specs" task :feature do cmds = [ - %w(rake gitlab:setup), - %w(rspec spec --tag @feature) + %w[rake gitlab:setup], + %w[rspec spec --tag @feature], ] run_commands(cmds) end - desc 'GitLab | Rspec | Run model specs' + desc "GitLab | Rspec | Run model specs" task :models do cmds = [ - %w(rake gitlab:setup), - %w(rspec spec --tag @models) + %w[rake gitlab:setup], + %w[rspec spec --tag @models], ] run_commands(cmds) end - desc 'GitLab | Rspec | Run service specs' + desc "GitLab | Rspec | Run service specs" task :services do cmds = [ - %w(rake gitlab:setup), - %w(rspec spec --tag @services) + %w[rake gitlab:setup], + %w[rspec spec --tag @services], ] run_commands(cmds) end - desc 'GitLab | Rspec | Run lib specs' + desc "GitLab | Rspec | Run lib specs" task :lib do cmds = [ - %w(rake gitlab:setup), - %w(rspec spec --tag @lib) + %w[rake gitlab:setup], + %w[rspec spec --tag @lib], ] run_commands(cmds) end - desc 'GitLab | Rspec | Run other specs' + desc "GitLab | Rspec | Run other specs" task :other do cmds = [ - %w(rake gitlab:setup), - %w(rspec spec --tag ~@api --tag ~@feature --tag ~@models --tag ~@lib --tag ~@services) + %w[rake gitlab:setup], + %w[rspec spec --tag ~@api --tag ~@feature --tag ~@models --tag ~@lib --tag ~@services], ] run_commands(cmds) end @@ -59,14 +59,14 @@ end desc "GitLab | Run specs" task :spec do cmds = [ - %w(rake gitlab:setup), - %w(rspec spec) + %w[rake gitlab:setup], + %w[rspec spec], ] run_commands(cmds) end def run_commands(cmds) cmds.each do |cmd| - system({ 'RAILS_ENV' => 'test', 'force' => 'yes' }, *cmd) || raise("#{cmd} failed!") + system({"RAILS_ENV" => "test", "force" => "yes"}, *cmd) || raise("#{cmd} failed!") end end |