We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0a36a commit 24e13afCopy full SHA for 24e13af
spec/misc/getopt_spec.rb
@@ -112,7 +112,7 @@
112
end
113
114
# error cases
115
- context "running without any option nor argument" do
+ context "without any option nor argument" do
116
before(:each) { run_texdoc }
117
118
it 'should result in the "no action" error' do
@@ -140,6 +140,15 @@
140
141
142
143
+ context "missing arguments for Option -c, followed by other options" do
144
+ before(:each) { run_texdoc "-c", "--help" }
145
+
146
+ it "should result in a getopt parser error" do
147
+ expect(last_command_started).to have_exit_status(1)
148
+ expect(stderr).to include(error_line "Option -c requires an argument.")
149
+ end
150
151
152
context "given an unknown option" do
153
before(:each) { run_texdoc "-x" }
154
0 commit comments