Skip to content

Commit 1ac00b0

Browse files
smorimotodaeho-ro
authored andcommitted
cram 0.7 (new formula)
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 85737d3 commit 1ac00b0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Formula/c/cram.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
class Cram < Formula
2+
include Language::Python::Virtualenv
3+
4+
desc "Functional testing framework for command-line applications"
5+
homepage "https://bitheap.org/cram"
6+
url "https://files.pythonhosted.org/packages/38/85/5a8a3397b2ccb2ffa3ba871f76a4d72c16531e43d0e58fc89a0f2983adbd/cram-0.7.tar.gz"
7+
sha256 "7da7445af2ce15b90aad5ec4792f857cef5786d71f14377e9eb994d8b8337f2f"
8+
license "GPL-2.0-or-later"
9+
10+
depends_on "[email protected]"
11+
12+
def install
13+
virtualenv_install_with_resources
14+
end
15+
16+
test do
17+
assert_match version.to_s, shell_output("#{bin}/cram --version")
18+
19+
(testpath/"test.t").write <<~EOS
20+
Simple cram test
21+
$ echo "Hello World"
22+
Hello World
23+
EOS
24+
expected = "Ran 1 tests, 0 skipped, 0 failed."
25+
assert_match expected, shell_output("#{bin}/cram test.t")
26+
end
27+
end

0 commit comments

Comments
 (0)