Sha256: 8c06f6405696b33b870c0741e7cdc1805531f6e04ad9c05a87fb187f925e97c8
Contents?: true
Size: 387 Bytes
Versions: 32
Compression:
Stored size: 387 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Sinclair::Matchers::AddInstanceMethodTo do describe 'yard' do let(:klass) { Class.new(MyModel) } let(:builder) { Sinclair.new(klass) } before do builder.add_method(:class_name, 'self.class.name') end it do expect { builder.build }.to add_method(:class_name).to(klass) end end end
Version data entries
32 entries across 32 versions & 1 rubygems