Module: RSpecMagic::Stable::UseMethodDiscovery

Defined in:
lib/rspec_magic/stable/use_method_discovery.rb

Overview

Create an automatic let variable containing the method or action name, computed from the description of the parent describe.

describe do
use_method_discovery :m

subject { m }

describe "#first_name" do
  it { is_expected.to eq :first_name }
end

describe ".some_stuff" do
  it { is_expected.to eq :some_stuff }
end

describe "GET some_action" do
  describe "intermediate context" do
    it { is_expected.to eq :some_action }
  end
end
end

Defined Under Namespace

Modules: Exports