Skip to content

Commit efa54ee

Browse files
Alphabetize function DSL test cases
1 parent 381977b commit efa54ee

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/dsl/functional/roast_dsl_examples_test.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,20 @@ class RoastDSLExamplesTest < FunctionalTest
171171
assert_empty lines
172172
end
173173

174+
test "ruby_cog.rb workflow runs successfully" do
175+
stdout, stderr = in_sandbox :ruby_cog do
176+
Roast::DSL::Workflow.from_file("dsl/ruby_cog.rb", EMPTY_PARAMS)
177+
end
178+
assert_empty stderr
179+
expected_stdout = <<~EOF
180+
Roast
181+
Hello, ROAST
182+
Calling a method: 7
183+
1 22 333 4444 55555
184+
EOF
185+
assert_equal expected_stdout, stdout
186+
end
187+
174188
test "step_communication.rb workflow runs successfully" do
175189
stdout, stderr = in_sandbox :step_communication do
176190
Roast::DSL::Workflow.from_file("dsl/step_communication.rb", EMPTY_PARAMS)
@@ -217,20 +231,6 @@ class RoastDSLExamplesTest < FunctionalTest
217231
EOF
218232
assert_equal expected_stdout, stdout
219233
end
220-
221-
test "ruby_cog.rb workflow runs successfully" do
222-
stdout, stderr = in_sandbox :ruby_cog do
223-
Roast::DSL::Workflow.from_file("dsl/ruby_cog.rb", EMPTY_PARAMS)
224-
end
225-
assert_empty stderr
226-
expected_stdout = <<~EOF
227-
Roast
228-
Hello, ROAST
229-
Calling a method: 7
230-
1 22 333 4444 55555
231-
EOF
232-
assert_equal expected_stdout, stdout
233-
end
234234
end
235235
end
236236
end

0 commit comments

Comments
 (0)