Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10058: tz_time_fix_timezone_failing_test_case.diff

File tz_time_fix_timezone_failing_test_case.diff, 0.6 kB (added by toolmantim, 10 months ago)

Failing test case against trunk of plugin

  • test/active_record_methods_test.rb

    old new  
    3636      @record.send :fix_timezone 
    3737      assert_equal @record.due_on, TzTime.local(2006, 1, 1) 
    3838    end 
     39     
     40    def test_should_only_fix_timezones_that_have_been_written 
     41      @record.instance_variable_set(:@due_on, Time.utc(2006, 1, 1)) 
     42      @record.send :fix_timezone 
     43      assert_equal TzTime.utc(2006, 1, 1), @record.due_on 
     44    end 
    3945  end 
    4046end