Sha256: 91c7484b4d1917e33b88f877ecbc01d2b4a28138087ce2b055c3951886331c2e
Contents?: true
Size: 492 Bytes
Versions: 32
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Sinclair::Matchers::AddClassMethod do describe 'yard' do describe '#to' do context 'when checking against Class' do let(:clazz) { Class.new(MyModel) } let(:block) do proc do clazz.define_singleton_method(:new_method) { 2 } end end it do expect(&block).to add_class_method(:new_method).to(clazz) end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems