Module: RSpec::Method

Defined in:
lib/rspec/method.rb

Defined Under Namespace

Modules: ExampleGroup

Constant Summary collapse

REFERENCE =
{
scope: /[.#]/, # class/instance
name:  /\S+/,  # may consist of non-word characters
		}
.map { |name, pattern| "(?<#{name}>#{pattern})" }
.join
.then { /(?:^|\s)#{_1}(?:$|\s)/ }