Module: RSpecMagic::Stable::AliasMethod

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

Overview

A matcher to check that a method is an alias of another method.

describe User do
  it { is_expected.to alias_method(:admin?, :is_admin) }
end