smalltalkable 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/smalltalkable/version.rb +1 -1
- data/lib/smalltalkable.rb +0 -6
- data/test/test_smalltalkable.rb +2 -2
- metadata +1 -1
data/lib/smalltalkable.rb
CHANGED
data/test/test_smalltalkable.rb
CHANGED
@@ -83,7 +83,7 @@ class TestSmalltalkable < Test::Unit::TestCase
|
|
83
83
|
String.smalltalkize :rjust => [:rjustWidth, :padding]
|
84
84
|
assert_equal '*******foo', 'foo'.rjustWidth(10, padding:'*')
|
85
85
|
|
86
|
-
Time.
|
86
|
+
Time.singleton_class.smalltalkize :gm, :month, :day, :hour, :minute, :second
|
87
87
|
time = Time.gm 2013, month:1, day:2, hour:3, minute:4, second:5
|
88
88
|
assert_equal 2013, time.year
|
89
89
|
assert_equal 1, time.month
|
@@ -92,7 +92,7 @@ class TestSmalltalkable < Test::Unit::TestCase
|
|
92
92
|
assert_equal 4, time.min
|
93
93
|
assert_equal 5, time.sec
|
94
94
|
|
95
|
-
Time.
|
95
|
+
Time.singleton_class.smalltalkize :local => [:local_year, :month, :day, :hour, :minute, :second]
|
96
96
|
local_time = Time.local_year 2013, month:1, day:2, hour:3, minute:4, second:5
|
97
97
|
assert_equal 2013, local_time.year
|
98
98
|
assert_equal 1, local_time.month
|