Sha256: b84af34b412b9b63befe668fe0c27a1fc46e86f79bc6ae062106273d98410dc3

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe 'yard' do
  describe Sinclair::Matchers::AddMethodTo 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

2 entries across 2 versions & 1 rubygems

Version Path
sinclair-1.1.3 spec/integration/yard/matchers/add_method_to_spec.rb
sinclair-1.1.2 spec/integration/yard/matchers/add_method_to_spec.rb