Sha256: bfb6a0962a8870d3f27899a11959cdb252d428e043d77ec61f8868cd680fe4c9
Contents?: true
Size: 901 Bytes
Versions: 11
Compression:
Stored size: 901 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Sinclair::Matchers do describe '#add_method' do it 'has been added to DSL' do expect(respond_to?(:add_method)).to be_truthy end it do expect(add_method(:method_name)).to be_a(described_class::AddInstanceMethod) end it 'returns the matcher with correct argument' do expect(add_method(:method_name)).to eq(described_class::AddInstanceMethod.new(:method_name)) end end describe '#add_class_method' do it 'has been added to DSL' do expect(respond_to?(:add_class_method)).to be_truthy end it do expect(add_class_method(:method_name)).to be_a(described_class::AddClassMethod) end it 'returns the matcher with correct argument' do expect(add_class_method(:method_name)) .to eq(described_class::AddClassMethod.new(:method_name)) end end end
Version data entries
11 entries across 11 versions & 1 rubygems