aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-23 06:00:01 +0100
committerMarkus Reiter2017-02-23 21:37:32 +0100
commitd914c41b9d05fd1c010ea26d43559e9961d6e95a (patch)
tree0e5f2cd32076aa3aa3de1ba82777c4528fb596c8 /Library/Homebrew/test/cmd
parentc7121f6be50e44784e3e29114617c29715bd9c0f (diff)
downloadbrew-d914c41b9d05fd1c010ea26d43559e9961d6e95a.tar.bz2
Convert `brew cat` test to spec.
Diffstat (limited to 'Library/Homebrew/test/cmd')
-rw-r--r--Library/Homebrew/test/cmd/cat_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cmd/cat_spec.rb b/Library/Homebrew/test/cmd/cat_spec.rb
new file mode 100644
index 000000000..8c230abee
--- /dev/null
+++ b/Library/Homebrew/test/cmd/cat_spec.rb
@@ -0,0 +1,11 @@
+describe "brew cat", :integration_test do
+ it "prints the content of a given Formula" do
+ formula_file = setup_test_formula "testball"
+ content = formula_file.read
+
+ expect { brew "cat", "testball" }
+ .to output(content).to_stdout
+ .and not_to_output.to_stderr
+ .and be_a_success
+ end
+end