mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Generate UTC time in todo
This commit is contained in:
parent
fd78d17c40
commit
18ac04d992
2 changed files with 5 additions and 1 deletions
|
@ -31,6 +31,10 @@ module Ameba
|
|||
create_todo.should contain "# This configuration file was generated by"
|
||||
end
|
||||
|
||||
it "creates a todo with UTC time" do
|
||||
create_todo.should match /\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} UTC/
|
||||
end
|
||||
|
||||
it "creates a todo with version" do
|
||||
create_todo.should contain "Ameba version #{VERSION}"
|
||||
end
|
||||
|
|
|
@ -41,7 +41,7 @@ module Ameba::Formatter
|
|||
private def header
|
||||
<<-HEADER
|
||||
# This configuration file was generated by `ameba --gen-config`
|
||||
# on #{Time.now} using Ameba version #{VERSION}.
|
||||
# on #{Time.utc_now} using Ameba version #{VERSION}.
|
||||
# The point is for the user to remove these configuration records
|
||||
# one by one as the reported problems are removed from the code base.
|
||||
|
||||
|
|
Loading…
Reference in a new issue