mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
test(elixir): fix CRLF problems
This commit is contained in:
parent
a506e0313a
commit
e000f865fe
@ -4,8 +4,9 @@ defmodule GildedRoseTest do
|
||||
import ExUnit.CaptureIO
|
||||
|
||||
test "Approval test 30 days" do
|
||||
expected = File.read!("test/ApprovalTest.ThirtyDays.verified.txt")
|
||||
assert capture_io(fn -> GildedRose.TextTestFixture.run(30) end) == expected
|
||||
expected = File.read!("test/ApprovalTest.ThirtyDays.verified.txt") |> String.replace("\r\n", "\n")
|
||||
result = capture_io(fn -> GildedRose.TextTestFixture.run(30) end) |> String.replace("\r\n", "\n")
|
||||
assert result == expected
|
||||
end
|
||||
|
||||
test "begin the journey of refactoring" do
|
||||
|
||||
Loading…
Reference in New Issue
Block a user