Doesn't that come from the activesupport library? I don't think the Fixnum 
class 
has support for that. 





----- Original Message ----
From: Reciprocity <[email protected]>
To: Watir General <[email protected]>
Sent: Tue, June 28, 2011 1:08:04 PM
Subject: [wtr-general] Watir 1.9.1 testing error

I'm runing my scripts through Watir 1.9.1.rc1 on IE8, Win7 and Ruby
187. I have this code:

puts 1.year

I get this error:

undefined method `year' for 1:Fixnum (NoMethodError)

This code has always worked in the past. Does anyone know what has
changed for this not to work anymore?

Thanks in advance for your help,

George

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to