- Notifications
You must be signed in to change notification settings - Fork 204
Allow --silent option for commands to quiet the output #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
5f271e2 5d72ae6 6355504 e039efe 0ab64c2 05853ea File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -54,6 +54,29 @@ | |
| end | ||
| end | ||
| | ||
| context 'when configured not to be silent' do | ||
| it 'exludes the `--silent` flag' do | ||
| ||
| paths = build_paths | ||
| command = build_command(paths: paths) | ||
| | ||
| expect(command.build).not_to match(/--silent/) | ||
| | ||
| paths = build_paths | ||
| command = build_command(paths: paths, options: { silent: false }) | ||
| | ||
| expect(command.build).not_to match(/--silent/) | ||
| end | ||
| end | ||
| | ||
| context 'when configured to be silent' do | ||
| ||
| it 'includes includes `--silent` flag' do | ||
| ||
| paths = build_paths | ||
| command = build_command(paths: paths, options: { silent: true }) | ||
| | ||
| expect(command.build).to match(/--silent/) | ||
| end | ||
| end | ||
| | ||
| context "when configured to watch" do | ||
| it "includes the `--watch` flag" do | ||
| paths = build_paths | ||
| | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.