Module: RSpec
- Defined in:
- lib/r_spec.rb,
lib/r_spec/clone.rb,
lib/r_spec/clone/dsl.rb,
lib/r_spec/clone/error.rb,
lib/r_spec/clone/report.rb,
lib/r_spec/clone/expectation_helper.rb,
lib/r_spec/clone/expectation_target.rb,
lib/r_spec/clone/expectation_helper/it.rb,
lib/r_spec/clone/expectation_helper/matcher.rb
Overview
The namespace of RSpec, which the clone takes for its words: describe,
context, it and pending, at the top level of a spec file.
Defined Under Namespace
Modules: Clone
Class Method Summary collapse
-
.context(description) { ... } ⇒ nil
Defines an example group that establishes a context, like empty array versus array with elements, and runs it in a child process.
-
.describe(const) { ... } ⇒ nil
Defines an example group that describes a unit to be tested.
-
.it(name = nil) { ... } ⇒ nil
Defines a concrete test case.
-
.pending(message) { ... } ⇒ nil
Defines a pending test case: its block, if any, is never run.
Class Method Details
.context(description) { ... } ⇒ nil
Defines an example group that establishes a context, like empty array versus array with elements, and runs it in a child process.
51 52 53 |
# File 'lib/r_spec.rb', line 51 def self.context(description, &) Clone::Dsl.context(description, &) end |
.describe(const) { ... } ⇒ nil
Defines an example group that describes a unit to be tested.
70 71 72 |
# File 'lib/r_spec.rb', line 70 def self.describe(const, &) Clone::Dsl.describe(const, &) end |