Sha256: 66a81d0de1df55bb78e02cca17a7bb46cdce09b122f6e9c8c2558c313c077446
Contents?: true
Size: 592 Bytes
Versions: 17
Compression:
Stored size: 592 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Sinclair::Matchers::ChangeClassMethod do describe 'yard' do describe '#on' do context 'when checking against Class' do let(:klass) { Class.new(MyModel) } let(:builder) { Sinclair.new(klass) } before do builder.add_class_method(:the_method) { 10 } builder.build builder.add_class_method(:the_method) { 20 } end it do expect { builder.build }.to change_class_method(:the_method).on(klass) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems