File: case_property_hash.rb

package info (click to toggle)
ruby-hashery 2.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 404 kB
  • sloc: ruby: 2,997; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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