Sha256: 7bd92f7eb45bbca4cecf557ccb95fb21d456f175092a4cfd98f48898ed0f5e5c

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::Rule, '.inherited' do
  let(:subclass) { Class.new(Yardstick::Rule) }

  after do
    Yardstick::Document.registered_rules.delete(subclass)
  end

  it 'registers rule' do
    expect(Yardstick::Document.registered_rules).to include(subclass)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/unit/yardstick/rule/class_methods/inherited_spec.rb
yardstick-0.9.8 spec/unit/yardstick/rule/class_methods/inherited_spec.rb
yardstick-0.9.7 spec/unit/yardstick/rule/class_methods/inherited_spec.rb