Skip to content

Commit

Permalink
Add new tag system to task_handler (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
meatball133 authored Aug 7, 2024
1 parent d356328 commit ddfa194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/concept/task-handler/spec/task_handler_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def check_proc(proc, num)
end

describe TaskHandler do
describe "initialize" do
describe "initialize", tags: "task_id=1" do
it "should initialize with a task" do
handler = TaskHandler.new(["task1", "task2"])
handler.@tasks.should eq ["task1", "task2"]
Expand All @@ -16,7 +16,7 @@ describe TaskHandler do
end
end

describe "update_task_condition_logic" do
describe "update_task_condition_logic", tags: "task_id=2" do
it "should update the task condition logic" do
handler = TaskHandler.new(["task1", "task2"])
handler.update_task_condition_logic { |priority| priority > 2 }
Expand All @@ -32,7 +32,7 @@ describe TaskHandler do
end
end

describe "execute" do
describe "execute", tags: "task_id=3" do
it "should add a task to the task list" do
handler = TaskHandler.new(["task1", "task2"])
handler.execute(1).should eq "Completed task1"
Expand Down

0 comments on commit ddfa194

Please sign in to comment.