Sha256: 9246bb2c72b108c86fb016664adb92fd635cd66d13a61d15c8611086a6fd8101
Contents?: true
Size: 834 Bytes
Versions: 1
Compression:
Stored size: 834 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Sinclair::Matchers::AddMethod do describe 'yard' do describe '#to' do context 'checking against Class' do let(:clazz) { Class.new } let(:builder) { Sinclair.new(clazz) } before do builder.add_method(:new_method, '2') end it do expect { builder.build }.to add_method(:new_method).to(clazz) end end context 'checking against instance' do let(:clazz) { Class.new } let(:builder) { Sinclair.new(clazz) } let(:instance) { clazz.new } before do builder.add_method(:the_method, 'true') end it do expect { builder.build }.to add_method(:the_method).to(instance) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinclair-1.1.3 | spec/integration/yard/matchers/add_method_spec.rb |