File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-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+ bottle do
11+ sha256 cellar : :any_skip_relocation , all : "380d5fde8323ac893ae796f88c68426acda8933ef993101014a5ab839a8abcfd"
12+ end
13+
14+ 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
You can’t perform that action at this time.
0 commit comments