|
32 | 32 | let(:connection) {subject.new(**CREDENTIALS)}
|
33 | 33 |
|
34 | 34 | # PG produces: "2022-11-11 12:38:59.123456+00"
|
35 |
| - it_behaves_like ATimestamp, 'UTC', '2022-11-11 23:38:59.123456+11', Time.new(2022, 11, 11, 23, 38, BigDecimal('59.123456'), '+11:00') |
| 35 | + it_behaves_like ATimestamp, 'UTC', '2022-11-11 23:38:59.123456+11', Time.new(2022, 11, 11, 23, 38, Rational('59.123456'), '+11:00') |
36 | 36 |
|
37 | 37 | # PG produces: "2022-11-11 12:38:59+00"
|
38 |
| - it_behaves_like ATimestamp, 'UTC', '2022-11-11 23:38:59+11', Time.new(2022, 11, 11, 23, 38, BigDecimal('59'), '+11:00') |
| 38 | + it_behaves_like ATimestamp, 'UTC', '2022-11-11 23:38:59+11', Time.new(2022, 11, 11, 23, 38, Rational('59'), '+11:00') |
39 | 39 |
|
40 | 40 | # PG produces: "2022-11-11 23:38:59.123456+00"
|
41 |
| - it_behaves_like ATimestamp, 'UTC', '2022-11-11 23:38:59.123456', Time.new(2022, 11, 11, 23, 38, BigDecimal('59.123456'), '+00:00') |
| 41 | + it_behaves_like ATimestamp, 'UTC', '2022-11-11 23:38:59.123456', Time.new(2022, 11, 11, 23, 38, Rational('59.123456'), '+00:00') |
42 | 42 |
|
43 | 43 | # PG produces: "2022-11-11 23:38:59+11"
|
44 |
| - it_behaves_like ATimestamp, 'Australia/Sydney', '2022-11-11 23:38:59', Time.new(2022, 11, 11, 23, 38, BigDecimal('59'), '+11:00') |
| 44 | + it_behaves_like ATimestamp, 'Australia/Sydney', '2022-11-11 23:38:59', Time.new(2022, 11, 11, 23, 38, Rational('59'), '+11:00') |
45 | 45 |
|
46 | 46 | # PG produces: "2022-11-12 06:08:59.123456+11"
|
47 |
| - it_behaves_like ATimestamp, 'Australia/Sydney', '2022-11-11 23:38:59.123456+04:30', Time.new(2022, 11, 11, 23, 38, BigDecimal('59.123456'), '+04:30') |
| 47 | + it_behaves_like ATimestamp, 'Australia/Sydney', '2022-11-11 23:38:59.123456+04:30', Time.new(2022, 11, 11, 23, 38, Rational('59.123456'), '+04:30') |
48 | 48 |
|
49 | 49 | # PG produces: "2000-01-01 05:30:00+05:30"
|
50 | 50 | it_behaves_like ATimestamp, 'Asia/Kolkata', '2000-01-01 00:00:00+00', Time.new(2000, 1, 1, 5, 30, 0, '+05:30')
|
51 | 51 |
|
52 | 52 | # PG produces: "2022-11-11 23:38:59+01"
|
53 |
| - it_behaves_like ATimestamp, 'Europe/Lisbon', '2022-11-11 23:38:59+01', Time.new(2022, 11, 11, 23, 38, BigDecimal('59'), '+01:00') |
| 53 | + it_behaves_like ATimestamp, 'Europe/Lisbon', '2022-11-11 23:38:59+01', Time.new(2022, 11, 11, 23, 38, Rational('59'), '+01:00') |
54 | 54 |
|
55 | 55 | # PG produces: "infinity"
|
56 | 56 | it_behaves_like ATimestamp, 'UTC', 'infinity', 'infinity'
|
|
0 commit comments