Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Timecopが実行環境のタイムゾーンに影響を受けてしまう #83

@demmys

Description

@demmys

ref: #82 (comment)

問題点

アプリケーション内のTime.nowはconfig.time_zoneで設定されたものが使用されるが、結果を判断するRSpec内で呼ばれるTime.nowは実行環境のタイムゾーンを使用するため、ローカルPC(タイムゾーンはJST)ではPassするテストがwercker(タイムゾーンはUTC)で失敗する。

現状

現状では明示的に9時間を足すことでテストの失敗を隠蔽している。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions