aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd/outdated_spec.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-23 06:03:50 +0100
committerMarkus Reiter2017-02-23 21:21:28 +0100
commita59868c8be7fcf16c51fdfccaa4bc9fc57ec83ee (patch)
tree16f60e18a6c9a39bfe7137719df6751a6731ef19 /Library/Homebrew/test/cmd/outdated_spec.rb
parentc7121f6be50e44784e3e29114617c29715bd9c0f (diff)
downloadbrew-a59868c8be7fcf16c51fdfccaa4bc9fc57ec83ee.tar.bz2
Convert `brew outdated` test to spec.
Diffstat (limited to 'Library/Homebrew/test/cmd/outdated_spec.rb')
-rw-r--r--Library/Homebrew/test/cmd/outdated_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cmd/outdated_spec.rb b/Library/Homebrew/test/cmd/outdated_spec.rb
new file mode 100644
index 000000000..2ce0825e8
--- /dev/null
+++ b/Library/Homebrew/test/cmd/outdated_spec.rb
@@ -0,0 +1,11 @@
+describe "brew outdated", :integration_test do
+ it "prints outdated Formulae" do
+ setup_test_formula "testball"
+ (HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
+
+ expect { brew "outdated" }
+ .to output("testball\n").to_stdout
+ .and not_to_output.to_stderr
+ .and be_a_success
+ end
+end