module RSpec::Core::DSL

DSL defines methods to group examples, most notably ‘describe`, and exposes them as class methods of {RSpec}. They can also be exposed globally (on `main` and instances of `Module`) through the {Configuration} option `expose_dsl_globally`.

By default the methods ‘describe`, `context` and `example_group` are exposed. These methods define a named context for one or more examples. The given block is evaluated in the context of a generated subclass of {RSpec::Core::ExampleGroup}.

## Examples:

RSpec.describe "something" do
  context "when something is a certain way" do
    it "does something" do
      # example code goes here
    end
  end
end

@see ExampleGroup @see ExampleGroup.example_group