Sha256: 9bb5506bb69dcfa2afffd74834b1b03185b2a0e5d79a130a5a9f32992d7efc8a

Contents?: true

Size: 282 Bytes

Versions: 1

Compression:

Stored size: 282 Bytes

Contents

RSpec.describe "`alias_method` matcher" do
  describe "klass" do
    let(:klass) do
      Class.new do
        def is_one
        end
        alias_method :one?, :is_one
      end
    end

    subject { klass.new }

    it { is_expected.to alias_method(:one?, :is_one) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_dt-1.2.0 spec/lib/spec/alias_method_matcher_spec.rb