Sha256: ea5f6b9b99a4de1b8f92a85ef65e00609fca2193646d36fe14bd91d02746dd1a

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

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::AddMethod)
    end

    it 'returns the matcher with correct argument' do
      expect(add_method(:method_name)).to eq(described_class::AddMethod.new(:method_name))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinclair-1.1.1 spec/lib/sinclair/matchers_spec.rb
sinclair-1.1.0 spec/lib/sinclair/matchers_spec.rb