Skip to content

Commit 76a8609

Browse files
authored
Merge pull request #222438 from smorimoto/cram
cram 0.7 (new formula)
2 parents 4769dea + 4e508fd commit 76a8609

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Formula/c/cram.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
bottle do
11+
sha256 cellar: :any_skip_relocation, all: "380d5fde8323ac893ae796f88c68426acda8933ef993101014a5ab839a8abcfd"
12+
end
13+
14+
depends_on "[email protected]"
15+
16+
def install
17+
virtualenv_install_with_resources
18+
end
19+
20+
test do
21+
assert_match version.to_s, shell_output("#{bin}/cram --version")
22+
23+
(testpath/"test.t").write <<~EOS
24+
Simple cram test
25+
$ echo "Hello World"
26+
Hello World
27+
EOS
28+
expected = "Ran 1 tests, 0 skipped, 0 failed."
29+
assert_match expected, shell_output("#{bin}/cram test.t")
30+
end
31+
end

0 commit comments

Comments
 (0)