Module: RSpec
- Defined in:
- lib/rspec_in_context.rb,
lib/rspec_in_context/context_management.rb
Overview
RSpec
Defined Under Namespace
Modules: Core
Class Method Summary collapse
-
.define_context(name, namespace: nil, ns: nil, silent: true, print_context: nil, &block) ⇒ Object
Allows you to define contexts outside of RSpec.describe blocks.
Class Method Details
.define_context(name, namespace: nil, ns: nil, silent: true, print_context: nil, &block) ⇒ Object
Allows you to define contexts outside of RSpec.describe blocks
27 28 29 30 31 |
# File 'lib/rspec_in_context.rb', line 27 def self.define_context(name, namespace: nil, ns: nil, silent: true, print_context: nil, &block) namespace ||= ns silent = print_context.nil? ? silent : !print_context RspecInContext::InContext.outside_define_context(name, namespace, silent, &block) end |