|
9 | 9 | expected_stderr = ForesiteRSpec.cli_line("Nonexistent directory foo") |
10 | 10 | expected_exit_code = 1 |
11 | 11 |
|
12 | | - expect { Foresite::Cli.new.invoke(:init) }.to output(expected_stderr).to_stderr \ |
| 12 | + expect { Foresite::Cli.new.invoke(:init) }.to output(expected_stderr).to_stderr |
13 | 13 | .and(raise_error(SystemExit) { |error| expect(error.status).to eq(expected_exit_code) }) |
14 | 14 | end |
15 | 15 |
|
|
19 | 19 | expected_stderr = ForesiteRSpec.cli_line("Cannot write to directory /usr") |
20 | 20 | expected_exit_code = 1 |
21 | 21 |
|
22 | | - expect { Foresite::Cli.new.invoke(:init) }.to output(expected_stderr).to_stderr \ |
| 22 | + expect { Foresite::Cli.new.invoke(:init) }.to output(expected_stderr).to_stderr |
23 | 23 | .and(raise_error(SystemExit) { |error| expect(error.status).to eq(expected_exit_code) }) |
24 | 24 | end |
25 | 25 |
|
|
80 | 80 | exptected_stderr = ForesiteRSpec.cli_line("Missing subdirectories, try running `foresite init`") |
81 | 81 | expected_exit_code = 1 |
82 | 82 |
|
83 | | - expect { Foresite::Cli.new.invoke(:touch, ["something"]) }.to output(exptected_stderr).to_stderr \ |
| 83 | + expect { Foresite::Cli.new.invoke(:touch, ["something"]) }.to output(exptected_stderr).to_stderr |
84 | 84 | .and(raise_error(SystemExit) { |error| expect(error.status).to eq(expected_exit_code) }) |
85 | 85 | end |
86 | 86 | end |
|
220 | 220 | exptected_stderr = ForesiteRSpec.cli_line("Missing subdirectories, try running `foresite init`") |
221 | 221 | expected_exit_code = 1 |
222 | 222 |
|
223 | | - expect { Foresite::Cli.new.invoke(:build) }.to output(exptected_stderr).to_stderr \ |
| 223 | + expect { Foresite::Cli.new.invoke(:build) }.to output(exptected_stderr).to_stderr |
224 | 224 | .and(raise_error(SystemExit) { |error| expect(error.status).to eq(expected_exit_code) }) |
225 | 225 | end |
226 | 226 | end |
|
235 | 235 | exptected_stderr = ForesiteRSpec.cli_line("No markdown files, try running `foresite touch`") |
236 | 236 | expected_exit_code = 1 |
237 | 237 |
|
238 | | - expect { Foresite::Cli.new.invoke(:build) }.to output(exptected_stderr).to_stderr \ |
| 238 | + expect { Foresite::Cli.new.invoke(:build) }.to output(exptected_stderr).to_stderr |
239 | 239 | .and(raise_error(SystemExit) { |error| expect(error.status).to eq(expected_exit_code) }) |
240 | 240 | end |
241 | 241 | end |
|
0 commit comments