summaryrefslogtreecommitdiff
path: root/test/with_different_ofs.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 13:41:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-25 13:41:11 +0000
commitc41b036f4d6b0ddd3f2310641f44763c270a7712 (patch)
tree4fd62d916ff802571d11f7a71ce3694a85722732 /test/with_different_ofs.rb
parent3e7c68119c1528f1589e53d9a795bc303dbddc1c (diff)
test/with_different_ofs.rb: fixed typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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