mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Switch to github actions
👋 travis, it was nice while it lasted! ❤️
This commit is contained in:
parent
a3721cb298
commit
be6464ff83
7 changed files with 84 additions and 81 deletions
26
lib/tasks/spec.rake
Normal file
26
lib/tasks/spec.rake
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
unless Rails.env.production?
|
||||
namespace :spec do
|
||||
desc 'rspec ability'
|
||||
task :ability do
|
||||
sh 'bundle exec rspec --format documentation spec/ability'
|
||||
end
|
||||
desc 'rspec models'
|
||||
task :models do
|
||||
sh 'bundle exec rspec --format documentation spec/models'
|
||||
end
|
||||
desc 'rspec controllers'
|
||||
task :controllers do
|
||||
sh 'bundle exec rspec --format documentation spec/controllers'
|
||||
end
|
||||
desc 'rspec features'
|
||||
task :features do
|
||||
sh 'bundle exec rspec --format documentation spec/features'
|
||||
end
|
||||
desc 'rspec the leftovers'
|
||||
task :leftovers do
|
||||
sh 'bundle exec rspec --format documentation --exclude-pattern "spec/{models,features,controllers,ability}/**/*_spec.rb"'
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue