Sha256: 8de49f97ead5f894571ccaeb15e59ed59c99d3f1adbad24c0666d7f6526fbac0

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

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