it "is only a travel_to test" do travel_to Time.new(2012, 1, 1, 1, 1, 1) do expect(Time.new).to eq Time.new(2012, 1, 1, 1, 1, 1) end endRSpec.configure do |config| ... config.include ActiveSupport::Testing::TimeHelpersend--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvHWzjwnoEirh09pBdTfCUA64OpoPvxJYkiYzih0pHW%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
new → time
new(year, month=nil, day=nil, hour=nil, min=nil, sec=nil, utc_offset=nil) → time
Returns a Time object.
It is initialized to the current system time if no argument is given.
a = Time.new #=> 2007-11-19 07:50:02 -0600
Thanks.
>> email to rubyonrails-talk+unsubscribe@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvHWzjwnoEirh09pBdTfCUA64OpoPvxJYkiYzih0pHW%2BQ%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CACDeCpshotmnGntZc5g51bt2g%2BKcV6r_0%3DwV%2B2vJpAiy1Yz7zQ%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvSh%2BZDxH-Eq_Kd-C37EgOmDLHLq04gg-uLPf4StXQ1tg%40mail.gmail.com.
>>> >> email to rubyonrails-talk+unsubscribe@googlegroups.com.
>>> >> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>> >> To view this discussion on the web visit
>>> >>
>>> >> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvHWzjwnoEirh09pBdTfCUA64OpoPvxJYkiYzih0pHW%2BQ%40mail.gmail.com.
>>> >> For more options, visit https://groups.google.com/d/optout.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "Ruby on Rails: Talk" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> > an
>>> > email to rubyonrails-talk+unsubscribe@googlegroups.com.
>>> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>> > To view this discussion on the web visit
>>> >
>>> > https://groups.google.com/d/msgid/rubyonrails-talk/CACDeCpshotmnGntZc5g51bt2g%2BKcV6r_0%3DwV%2B2vJpAiy1Yz7zQ%40mail.gmail.com.
>>> >
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Ruby on Rails: Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to rubyonrails-talk+unsubscribe@googlegroups.com.
>>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvSh%2BZDxH-Eq_Kd-C37EgOmDLHLq04gg-uLPf4StXQ1tg%40mail.gmail.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to rubyonrails-talk+unsubscribe@googlegroups.com.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/rubyonrails-talk/CACDeCpuQ%3DGJ18iaxQCBhO9pdAp1ZAU%3DgPEzP%2BBbtAoFjBWL98Q%40mail.gmail.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv48ZS1%2BQ6d6uKqNBcHq0y8jwe3cjsqqAiUCH%2BGvYv%2BhA%40mail.gmail.com.