mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 22:51:24 +08:00
DEV: correct spec to test for correct fidelity
This is due to 9ebabc1d
This commit is contained in:
@ -51,7 +51,7 @@ describe PostsController do
|
|||||||
json = ::JSON.parse(response.body)
|
json = ::JSON.parse(response.body)
|
||||||
post_id = json["id"]
|
post_id = json["id"]
|
||||||
|
|
||||||
expect(Poll.find_by(post_id: post_id).close_at).to eq(1.month.from_now)
|
expect(Poll.find_by(post_id: post_id).close_at).to be_within_one_second_of(1.month.from_now)
|
||||||
|
|
||||||
job = Jobs::ClosePoll.jobs.first
|
job = Jobs::ClosePoll.jobs.first
|
||||||
job_args = job["args"].first
|
job_args = job["args"].first
|
||||||
|
Reference in New Issue
Block a user