SPEC: Check date and time values separately
This commit is contained in:
parent
b13b6e30d6
commit
16d7132ba1
|
@ -13,7 +13,9 @@ describe Post do
|
||||||
SQL
|
SQL
|
||||||
CookedPostProcessor.new(post).post_process
|
CookedPostProcessor.new(post).post_process
|
||||||
|
|
||||||
expect(post.local_dates).to eq([{"date"=>"2018-09-17", "time"=>"01:39:00"}])
|
expect(post.local_dates.count).to eq(1)
|
||||||
|
expect(post.local_dates[0]["date"]).to eq("2018-09-17")
|
||||||
|
expect(post.local_dates[0]["time"]).to eq("01:39:00")
|
||||||
|
|
||||||
post.raw = "Text removed"
|
post.raw = "Text removed"
|
||||||
post.save
|
post.save
|
||||||
|
|
Loading…
Reference in New Issue