Skip to content

Commit

Permalink
removed failing test for Time#initialize; ref #3295
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Nov 26, 2016
1 parent 4256130 commit 277e81a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions mrbgems/mruby-time/test/time.rb
Expand Up @@ -211,14 +211,3 @@
end end
t.usec == 0 t.usec == 0
end end

assert("Time#initialize doens't leave uninitialized object accessible") do
assert_raise ArgumentError do
$x = Time.new
a = Object.new
def a.to_i
$x.mday
end
$x.initialize a
end
end

0 comments on commit 277e81a

Please sign in to comment.