This commit is contained in:
1 parent
c8ac4fcae5
commit
4cee170d66
17576 files changed
+895740
-2
No files matched your search
@@ -0,0 +1,21 @@
|
||||
require 'helper'
|
||||
|
||||
test_case PropertyHash do
|
||||
|
||||
class_method :new do
|
||||
test do
|
||||
PropertyHash.new
|
||||
end
|
||||
end
|
||||
|
||||
method :update do
|
||||
test do
|
||||
h = PropertyHash.new
|
||||
h.property :a
|
||||
h.property :b
|
||||
h.update(:a=>1, :b=>2)
|
||||
h.assert == {:a=>1, :b=>2}
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user