Skip to content

Commit

Permalink
Fix duplicate spec name
Browse files Browse the repository at this point in the history
  • Loading branch information
Blacksmoke16 committed Dec 15, 2024
1 parent ef883be commit 03f7f5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/console/spec/output/io_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct IOTest < ASPEC::TestCase
end
end

def test_decorated_no_color_empty : Nil
def test_decorated_force_color_empty : Nil
with_isolated_env do
ENV["FORCE_COLOR"] = ""
ACON::Output::IO.new(@io).decorated?.should be_false
Expand Down
5 changes: 1 addition & 4 deletions src/components/console/spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ struct MockCommandLoader
end

def with_isolated_env(&) : Nil
old_values = {} of String => String
old_values = ENV.dup
begin
ENV.each do |key, value|
old_values[key] = value
end
ENV.clear

yield
Expand Down

0 comments on commit 03f7f5e

Please sign in to comment.