Removes last outside references to the Colour module
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
defmodule Display.Intro do
|
defmodule Display.Intro do
|
||||||
alias Display.Colours
|
alias Display.Paint
|
||||||
|
|
||||||
def intro(module, modules) do
|
def intro(module, modules) do
|
||||||
if not module in modules do
|
if not module in modules do
|
||||||
@@ -11,6 +11,6 @@ defmodule Display.Intro do
|
|||||||
|
|
||||||
def show_intro(message) do
|
def show_intro(message) do
|
||||||
message <> "\n"
|
message <> "\n"
|
||||||
|> Colours.green
|
|> Paint.green
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
defmodule Display.ProgressBar do
|
defmodule Display.ProgressBar do
|
||||||
alias Display.Colours
|
|
||||||
|
|
||||||
@progress_bar_length 30
|
@progress_bar_length 30
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ defmodule IntroTest do
|
|||||||
alias Display.Intro
|
alias Display.Intro
|
||||||
|
|
||||||
test "module not visited yet" do
|
test "module not visited yet" do
|
||||||
assert Intro.intro(SampleKoan, []) == "\e[32mThere is something\n\n\e[0m"
|
assert Intro.intro(SampleKoan, []) == "There is something\n\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "module has been visited" do
|
test "module has been visited" do
|
||||||
|
|||||||
Reference in New Issue
Block a user