aboutsummaryrefslogtreecommitdiffstats
path: root/test/with_different_ofs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/with_different_ofs.rb')
-rw-r--r--test/with_different_ofs.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/with_different_ofs.rb b/test/with_different_ofs.rb
new file mode 100644
index 0000000000..3192da9d1f
--- /dev/null
+++ b/test/with_different_ofs.rb
@@ -0,0 +1,19 @@
+module DifferentOFS
+ def setup
+ super
+ @ofs, $, = $,, "-"
+ end
+ def teardown
+ $, = @ofs
+ super
+ end
+
+ module WithDifferentOFS
+ def with_diffrent_ofs
+ end
+ end
+ def self.included(klass)
+ super(klass)
+ klass.const_set(:DifferentOFS, Class.new(klass).class_eval {include WithDifferentOFS}).name
+ end
+end