Sha256: dcbe56adcef767476f32ae4a3f509084be5aafcbb3ec7df1a3f205ad68ad838b

Contents?: true

Size: 398 Bytes

Versions: 39

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal = true

RSpec.describe :in_default_time_zone do
  link :in_default_time_zone, from: :ree_datetime
  link :set_default_time_zone, from: :ree_datetime

  it {
    set_default_time_zone('Moscow')

    expect(
      in_default_time_zone(
        DateTime.new(2022, 4, 5, 18, 4, 15, "+00:00")
      )
    ).to eq(
      DateTime.new(2022, 4, 5, 21, 4, 15, "+03:00")
    )
  }
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
ree_lib-1.0.39 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.38 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.37 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.36 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.35 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.34 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.33 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.32 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.31 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.30 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.29 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.28 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.27 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.26 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.24 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.23 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.22 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.21 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.20 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb
ree_lib-1.0.19 lib/ree_lib/packages/ree_datetime/spec/ree_datetime/functions/in_default_time_zone_spec.rb