Sha256: 35674a3a526878d6e81ec2d35ed60c0d4c5bb1986f3e137b950047db9afd7104

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'
require 'concerned_inheritance'

describe ConcernedInheritance do

  let(:klass) do
    Class.new do
      extend ConcernedInheritance
    end
  end

  describe '.extended' do

  end

  describe '.define_inherited_callback' do
    it 'should include the callback' do
      block = Proc.new { }
      klass.send :define_inherited_callback, &block
      klass.instance_variable_get(:@inherited_callbacks).should include block
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
memory_model-0.0.1 spec/memory_model/concerned_inheritance_spec.rb