Skip to content

Commit

Permalink
Adjust test descriptions to match naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
frerich committed Dec 16, 2023
1 parent 155b9d5 commit 728bf4d
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions test/credo/check/refactor/utc_now_truncate_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do

@described_check Credo.Check.Refactor.UtcNowTruncate

test "triggers when applying DateTime.truncate/2 to DateTime.utc_now/0" do
test "should report a violation when applying DateTime.truncate/2 to DateTime.utc_now/0" do
"""
defmodule M do
def f do
Expand All @@ -16,7 +16,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when applying DateTime.truncate/2 to DateTime.utc_now/1" do
test "should report a violation when applying DateTime.truncate/2 to DateTime.utc_now/1" do
"""
defmodule M do
def f do
Expand All @@ -29,7 +29,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when applying DateTime.truncate/2 to DateTime.utc_now/2" do
test "should report a violation when applying DateTime.truncate/2 to DateTime.utc_now/2" do
"""
defmodule M do
def f do
Expand All @@ -42,7 +42,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping result of DateTime.utc_now/0 into DateTime.truncate/2" do
test "should report a violation when piping result of DateTime.utc_now/0 into DateTime.truncate/2" do
"""
defmodule M do
def f do
Expand All @@ -55,7 +55,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping result of DateTime.utc_now/1 into DateTime.truncate/2" do
test "should report a violation when piping result of DateTime.utc_now/1 into DateTime.truncate/2" do
"""
defmodule M do
def f do
Expand All @@ -68,7 +68,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping result of DateTime.utc_now/2 into DateTime.truncate/2" do
test "should report a violation when piping result of DateTime.utc_now/2 into DateTime.truncate/2" do
"""
defmodule M do
def f do
Expand All @@ -81,7 +81,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping argument to DateTime.utc_now/1 and applying DateTime.truncate/2 to that" do
test "should report a violation when piping argument to DateTime.utc_now/1 and applying DateTime.truncate/2 to that" do
"""
defmodule M do
def f do
Expand All @@ -94,7 +94,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping argument to DateTime.utc_now/2 and applying DateTime.truncate/2 to that" do
test "should report a violation when piping argument to DateTime.utc_now/2 and applying DateTime.truncate/2 to that" do
"""
defmodule M do
def f do
Expand All @@ -107,7 +107,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping argument to DateTime.utc_now/1 and piping result to DateTime.truncate/2" do
test "should report a violation when piping argument to DateTime.utc_now/1 and piping result to DateTime.truncate/2" do
"""
defmodule M do
def f do
Expand All @@ -120,7 +120,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping argument to DateTime.utc_now/2 and piping result to DateTime.truncate/2" do
test "should report a violation when piping argument to DateTime.utc_now/2 and piping result to DateTime.truncate/2" do
"""
defmodule M do
def f do
Expand All @@ -133,7 +133,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when applying NaiveDateTime.truncate/2 to NaiveDateTime.utc_now/0" do
test "should report a violation when applying NaiveDateTime.truncate/2 to NaiveDateTime.utc_now/0" do
"""
defmodule M do
def f do
Expand All @@ -146,7 +146,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when applying NaiveDateTime.truncate/2 to NaiveDateTime.utc_now/1" do
test "should report a violation when applying NaiveDateTime.truncate/2 to NaiveDateTime.utc_now/1" do
"""
defmodule M do
def f do
Expand All @@ -159,7 +159,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when applying NaiveDateTime.truncate/2 to NaiveDateTime.utc_now/2" do
test "should report a violation when applying NaiveDateTime.truncate/2 to NaiveDateTime.utc_now/2" do
"""
defmodule M do
def f do
Expand All @@ -172,7 +172,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping result of NaiveDateTime.utc_now/0 into NaiveDateTime.truncate/2" do
test "should report a violation when piping result of NaiveDateTime.utc_now/0 into NaiveDateTime.truncate/2" do
"""
defmodule M do
def f do
Expand All @@ -185,7 +185,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping result of NaiveDateTime.utc_now/1 into NaiveDateTime.truncate/2" do
test "should report a violation when piping result of NaiveDateTime.utc_now/1 into NaiveDateTime.truncate/2" do
"""
defmodule M do
def f do
Expand All @@ -198,7 +198,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping result of NaiveDateTime.utc_now/2 into NaiveDateTime.truncate/2" do
test "should report a violation when piping result of NaiveDateTime.utc_now/2 into NaiveDateTime.truncate/2" do
"""
defmodule M do
def f do
Expand All @@ -211,7 +211,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping argument to NaiveDateTime.utc_now/1 and applying NaiveDateTime.truncate/2 to that" do
test "should report a violation when piping argument to NaiveDateTime.utc_now/1 and applying NaiveDateTime.truncate/2 to that" do
"""
defmodule M do
def f do
Expand All @@ -224,7 +224,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping argument to NaiveDateTime.utc_now/2 and applying NaiveDateTime.truncate/2 to that" do
test "should report a violation when piping argument to NaiveDateTime.utc_now/2 and applying NaiveDateTime.truncate/2 to that" do
"""
defmodule M do
def f do
Expand All @@ -237,7 +237,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping argument to NaiveDateTime.utc_now/1 and piping result to NaiveDateTime.truncate/2" do
test "should report a violation when piping argument to NaiveDateTime.utc_now/1 and piping result to NaiveDateTime.truncate/2" do
"""
defmodule M do
def f do
Expand All @@ -250,7 +250,7 @@ defmodule Credo.Check.Refactor.UtcNowTruncateTest do
|> assert_issue()
end

test "triggers when piping argument to NaiveDateTime.utc_now/2 and piping result to NaiveDateTime.truncate/2" do
test "should report a violation when piping argument to NaiveDateTime.utc_now/2 and piping result to NaiveDateTime.truncate/2" do
"""
defmodule M do
def f do
Expand Down

0 comments on commit 728bf4d

Please sign in to comment.