Sha256: aeb1f688c2b7ca87cf0ca0e35f9f5bf501e90afd77aa3a1d0a414203764ad2db

Contents?: true

Size: 383 Bytes

Versions: 32

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Sinclair::Matchers::AddClassMethodTo do
  describe 'yard' do
    let(:klass)   { Class.new(MyModel) }

    let(:block) do
      proc do
        klass.define_singleton_method(:parent_name) { superclass.name }
      end
    end

    it do
      expect(&block).to add_class_method(:parent_name).to(klass)
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-2.1.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-2.0.1 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-2.0.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.16.3 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.16.2 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.16.1 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.16.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.15.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.14.2 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.14.1 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.14.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.13.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.12.1 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.12.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.11.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.10.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.9.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.8.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb
sinclair-1.7.0 spec/integration/yard/sinclair/matchers/add_class_method_to_spec.rb