Permalink
Browse files

bump

  • Loading branch information...
1 parent 566db4a commit cce248f5af606566a0d3c0d2baeaac925c21d1a2 @kachick committed Aug 12, 2012
Showing with 22 additions and 2 deletions.
  1. +1 −1 Manifest.txt
  2. +1 −1 lib/structable/classmethods.rb
  3. +20 −0 test/test_structable.rb
View
@@ -10,4 +10,4 @@ lib/structable/singletonclass.rb
lib/structable/version.rb
test/test_helper.rb
test/test_structable.rb
-examples/example.rb
+examples/README.rb
@@ -113,7 +113,7 @@ def freeze
end
private
-
+
# @param [Symbol, String] name
# @return [nil]
def member(name)
View
@@ -166,3 +166,23 @@ def test_each_pair
end
end
end
+
+# @todo
+class TestStructableClassdup < Test::Unit::TestCase
+ class Sth
+ include Structable
+
+ member :foo
+ end
+
+ Sth2 = Sth.dup
+
+ class Sth2
+ member :bar
+ end
+
+ def test_classdup
+ assert_equal [:foo], Sth.members
+ assert_equal [:foo, :bar], Sth2.members
+ end
+end

0 comments on commit cce248f

Please sign in to comment.