spec/nanoc/cli/commands/deploy_spec.rb in nanoc-4.7.5 vs spec/nanoc/cli/commands/deploy_spec.rb in nanoc-4.7.6
- old
+ new
@@ -80,16 +80,16 @@
include_examples 'no effective deploy'
end
context '--list-deployers' do
- let(:command) { %w(deploy --list-deployers) }
+ let(:command) { %w[deploy --list-deployers] }
include_examples 'lists all deployers'
end
context '-D' do
- let(:command) { %w(deploy -D) }
+ let(:command) { %w[deploy -D] }
include_examples 'lists all deployers'
end
end
describe 'listing deployment configurations' do
@@ -129,23 +129,23 @@
include_examples 'no effective deploy'
end
end
context '--list' do
- let(:command) { %w(deploy --list) }
+ let(:command) { %w[deploy --list] }
include_examples 'lists all deployment configurations'
end
context '-L' do
- let(:command) { %w(deploy -L) }
+ let(:command) { %w[deploy -L] }
include_examples 'lists all deployment configurations'
end
end
describe 'deploying' do
let(:run) { Nanoc::CLI.run(command) }
- let(:command) { %w(deploy) }
+ let(:command) { %w[deploy] }
before do
FileUtils.mkdir_p('output')
FileUtils.mkdir_p('remote')
File.write('output/success.txt', 'hurrah')
@@ -300,20 +300,20 @@
end
end
end
context 'non-default target, specified as argument' do
- let(:command) { %w(deploy production) }
+ let(:command) { %w[deploy production] }
include_examples 'deploy with non-default target'
end
context 'non-default target, specified as option (--target)' do
- let(:command) { %w(deploy --target production) }
+ let(:command) { %w[deploy --target production] }
include_examples 'deploy with non-default target'
end
context 'multiple targets specified' do
- let(:command) { %w(deploy --target staging production) }
+ let(:command) { %w[deploy --target staging production] }
it 'errors' do
expect { run }.to raise_error(
Nanoc::Int::Errors::GenericTrivial,
'Only one deployment target can be specified on the command line.',