Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

688 B
Raw Blame
# frozen_string_literal: true

##
# Add circuit breakers for CI builds, such as focused specs
# that somehow elude linting
RSpec.configure do |config|
  if ENV["CI"]
    config.before(:example, :focus) { |example| raise "Found focused example at #{example.location}" }
  else
    # This allows you to limit a spec run to individual examples or groups
    # you care about by tagging them with `:focus` metadata. When nothing
    # is tagged with `:focus`, all examples get run. RSpec also provides
    # aliases for `it`, `describe`, and `context` that include `:focus`
    # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
    config.filter_run_when_matching :focus
  end
end