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

Version Path
sinclair-1.4.1 spec/integration/yard/sinclair/matchers/add_method_to_spec.rb
sinclair-1.4.0 spec/integration/yard/sinclair/matchers/add_method_to_spec.rb
sinclair-1.3.4 spec/integration/yard/sinclair/matchers/add_method_to_spec.rb
sinclair-1.3.3 spec/integration/yard/sinclair/matchers/add_method_to_spec.rb
sinclair-1.3.2 spec/integration/yard/sinclair/matchers/add_method_to_spec.rb
sinclair-1.3.1 spec/integration/yard/sinclair/matchers/add_method_to_spec.rb
sinclair-1.3.0 spec/integration/yard/sinclair/matchers/add_method_to_spec.rb
sinclair-1.2.1 spec/integration/yard/sinclair/matchers/add_method_to_spec.rb
sinclair-1.2.0 spec/integration/yard/sinclair/matchers/add_method_to_spec.rb