Open blackchestnut opened 6 years ago
# spec/spec_helper RSpec.configure do |config| # ... config.filter_run_excluding tag: :not_for_ci if ENV['CI'] end
# spec/controllers/foos_controller_spec.rb describe FoosController, tag: :not_for_ci do render_views describe '#index' do # ... end end
If the environment CI is specified, all specs with tag: :not_for_ci will be ignored.
tag: :not_for_ci
CI=true rspec spec/controllers/foos_controller_spec.rb
If the environment CI is specified, all specs with
tag: :not_for_ci
will be ignored.