diff options
Diffstat (limited to 'test/with_different_ofs.rb')
-rw-r--r-- | test/with_different_ofs.rb | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/test/with_different_ofs.rb b/test/with_different_ofs.rb index 3192da9d1f..76dfa6896c 100644 --- a/test/with_different_ofs.rb +++ b/test/with_different_ofs.rb @@ -1,18 +1,16 @@ module DifferentOFS - def setup - super - @ofs, $, = $,, "-" - end - def teardown - $, = @ofs - super - end - module WithDifferentOFS - def with_diffrent_ofs + def setup + super + @ofs, $, = $,, "-" + end + def teardown + $, = @ofs + super end end - def self.included(klass) + + def self.extended(klass) super(klass) klass.const_set(:DifferentOFS, Class.new(klass).class_eval {include WithDifferentOFS}).name end |