repo.or.cz
/
monkeycharger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Upgraded Rails and RSpec
[monkeycharger.git]
/
vendor
/
plugins
/
rspec
/
rspec
/
lib
/
spec
/
example
/
module_reopening_fix.rb
blob
2fc9e9d8f8088e23e1105de3b1ecd6ac72f22c05
1
module Spec
2
module Example
3
module ModuleReopeningFix
4
def child_modules
5
@child_modules ||= []
6
end
7
8
def included(mod)
9
child_modules << mod
10
end
11
12
def include(mod)
13
super
14
child_modules.each do |child_module|
15
child_module.__send__(:include, mod)
16
end
17
end
18
end
19
end
20
end