Skip to content

Commit 5250a82

Browse files
authored
Merge pull request #9 from shopify-playground/ec-test-print-ruby-cc-version
Add a test for the print_ruby_cc_version command
2 parents 82bdfbc + 155e8e5 commit 5250a82

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/cli_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,15 @@ def test_release
107107
FileUtils.rm_rf("tmp/bar.gem")
108108
FileUtils.rm_rf("tmp/some_file")
109109
end
110+
111+
def test_print_ruby_cc_version
112+
out, _ = capture_subprocess_io do
113+
Dir.chdir("test/fixtures/dummy_gem") do
114+
CLI.start(["print_ruby_cc_version"])
115+
end
116+
end
117+
118+
assert_equal("3.4.6:3.3.8:3.2.8", out)
119+
end
110120
end
111121
end

0 commit comments

Comments
 (0)