File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 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+ 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
You can’t perform that action at this time.
0 commit comments