Sha256: 58682772520afb1df966a16fb5134c579aade0203c420d7ce761f6d9e439e8a1
Contents?: true
Size: 379 Bytes
Versions: 9
Compression:
Stored size: 379 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Sinclair::Matchers::AddMethodTo 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
9 entries across 9 versions & 1 rubygems