Module: RSpecMagic::Stable::DescribedSym

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

Overview

Transform described_class into underscored symbols described_sym and me.

describe UserProfile do
  it { expect(described_sym).to eq :user_profile }
  it { expect(me).to eq :user_profile }
end

With a factory:

describe UserProfile do
  let(:uprof1) { create described_sym }
  let(:uprof2) { create me }
  
end

Defined Under Namespace

Modules: Exports, Util