We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bda79b9 + 473ba20 commit d366b75Copy full SHA for d366b75
Formula/g/gnu-getopt.rb
@@ -46,7 +46,7 @@ class GnuGetopt < Formula
46
keg_only :shadowed_by_macos, "macOS provides BSD getopt"
47
48
on_linux do
49
- keg_only "conflicts with util-linux"
+ keg_only "it conflicts with util-linux"
50
end
51
52
def install
@@ -63,9 +63,9 @@ def install
63
64
65
test do
66
- system bin/"getopt", "-o", "--test"
+ output = shell_output("#{bin}/getopt --longoptions foo --options ab:c test -b bar --foo baz")
67
+ assert_equal " -b 'bar' --foo -- 'test' 'baz'\n", output
68
# Check that getopt is enhanced
- quiet_system bin/"getopt", "-T"
69
- assert_equal 4, $CHILD_STATUS.exitstatus
+ assert_empty shell_output("#{bin}/getopt --test", 4)
70
71
0 commit comments