Skip to content

Commit bc000c9

Browse files
committed
Fix targetless workflow test for pre/post processing framework
The test was failing because it didn't stub the output_manager method that's now being called in workflow_runner.rb for the pre/post processing feature.
1 parent bf8edd8 commit bc000c9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
roast-ai (0.2.1)
5-
activesupport (~> 7.0)
5+
activesupport (>= 7.0)
66
cli-ui
77
diff-lcs (~> 1.5)
88
faraday-retry

test/roast/workflow/targetless_workflow_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ def test_executes_workflow_without_a_target
4444
workflow.stubs(:respond_to?).with(:session_name).returns(true)
4545
workflow.stubs(:respond_to?).with(:final_output).returns(true)
4646

47+
# Stub output_manager for the pre/post processing code
48+
output_manager = mock("output_manager")
49+
workflow.stubs(:output_manager).returns(output_manager)
50+
4751
Roast::Workflow::BaseWorkflow.expects(:new).with(
4852
nil,
4953
has_entries(name: instance_of(String), context_path: instance_of(String)),

0 commit comments

Comments
 (0)