Sha256: 690391132aa6f56cb643cc6d877b67668fa16f17d8b4bd8f64a2686211a76fb7

Contents?: true

Size: 450 Bytes

Versions: 77

Compression:

Stored size: 450 Bytes

Contents

module Spec
  module Example
    # This is a fix for ...Something in Ruby 1.8.6??... (Someone fill in here please - Aslak)
    module ModuleReopeningFix
      def child_modules
        @child_modules ||= []
      end

      def included(mod)
        child_modules << mod
      end

      def include(mod)
        super
        child_modules.each do |child_module|
          child_module.__send__(:include, mod)
        end
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 12 rubygems

Version Path
dchelimsky-rspec-1.1.10 lib/spec/example/module_reopening_fix.rb
dchelimsky-rspec-1.1.11.1 lib/spec/example/module_reopening_fix.rb
dchelimsky-rspec-1.1.11.2 lib/spec/example/module_reopening_fix.rb
dchelimsky-rspec-1.1.11.3 lib/spec/example/module_reopening_fix.rb
dchelimsky-rspec-1.1.11.4 lib/spec/example/module_reopening_fix.rb
dchelimsky-rspec-1.1.11.5 lib/spec/example/module_reopening_fix.rb
dchelimsky-rspec-1.1.11.6 lib/spec/example/module_reopening_fix.rb
dchelimsky-rspec-1.1.11.7 lib/spec/example/module_reopening_fix.rb
dchelimsky-rspec-1.1.11 lib/spec/example/module_reopening_fix.rb
dchelimsky-rspec-1.1.12 lib/spec/example/module_reopening_fix.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec/example/module_reopening_fix.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec/example/module_reopening_fix.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec/example/module_reopening_fix.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec/example/module_reopening_fix.rb
newbamboo-evented-rspec-1.1.12 lib/spec/example/module_reopening_fix.rb
newbamboo-rspec-1.1.12 lib/spec/example/module_reopening_fix.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/module_reopening_fix.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/module_reopening_fix.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/module_reopening_fix.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/module_reopening_fix.rb