test/cli/commands/test_deploy.rb in nanoc-3.7.3 vs test/cli/commands/test_deploy.rb in nanoc-3.7.4
- old
+ new
@@ -1,17 +1,17 @@
# encoding: utf-8
class Nanoc::CLI::Commands::DeployTest < Nanoc::TestCase
def test_deploy
- skip_unless_have_command "rsync"
+ skip_unless_have_command 'rsync'
with_site do |site|
File.open('nanoc.yaml', 'w') do |io|
io.write "deploy:\n"
io.write " public:\n"
io.write " kind: rsync\n"
- io.write " dst: mydestination"
+ io.write ' dst: mydestination'
end
FileUtils.mkdir_p('output')
File.open('output/blah.html', 'w') { |io| io.write 'moo' }
@@ -26,11 +26,11 @@
with_site do |site|
File.open('nanoc.yaml', 'w') do |io|
io.write "deploy:\n"
io.write " public:\n"
io.write " kind: rsync\n"
- io.write " dst: mydestination"
+ io.write ' dst: mydestination'
end
FileUtils.mkdir_p('output')
File.open('output/blah.html', 'w') { |io| io.write 'moo' }
@@ -61,11 +61,11 @@
with_site do |site|
File.open('nanoc.yaml', 'w') do |io|
io.write "deploy:\n"
io.write " public:\n"
io.write " kind: rsync\n"
- io.write " dst: mydestination"
+ io.write ' dst: mydestination'
end
FileUtils.mkdir_p('output')
File.open('output/blah.html', 'w') { |io| io.write 'moo' }
@@ -84,11 +84,11 @@
with_site do |site|
File.open('nanoc.yaml', 'w') do |io|
io.write "deploy:\n"
io.write " public:\n"
io.write " kind: rsync\n"
- io.write " dst: mydestination"
+ io.write ' dst: mydestination'
end
FileUtils.mkdir_p('output')
File.open('output/blah.html', 'w') { |io| io.write 'moo' }
@@ -102,16 +102,16 @@
refute File.file?('mydestination/blah.html')
end
end
def test_deploy_without_kind
- skip_unless_have_command "rsync"
+ skip_unless_have_command 'rsync'
with_site do |site|
File.open('nanoc.yaml', 'w') do |io|
io.write "deploy:\n"
io.write " public:\n"
- io.write " dst: mydestination"
+ io.write ' dst: mydestination'
end
FileUtils.mkdir_p('output')
File.open('output/blah.html', 'w') { |io| io.write 'moo' }
@@ -129,11 +129,11 @@
def test_deploy_without_target_without_default
with_site do |site|
File.open('nanoc.yaml', 'w') do |io|
io.write "deploy:\n"
io.write " public:\n"
- io.write " dst: mydestination"
+ io.write ' dst: mydestination'
end
FileUtils.mkdir_p('output')
File.open('output/blah.html', 'w') { |io| io.write 'moo' }
@@ -145,15 +145,15 @@
end
end
end
def test_deploy_without_target_with_default
- skip_unless_have_command "rsync"
+ skip_unless_have_command 'rsync'
with_site do |site|
File.open('nanoc.yaml', 'w') do |io|
io.write "deploy:\n"
io.write " default:\n"
- io.write " dst: mydestination"
+ io.write ' dst: mydestination'
end
FileUtils.mkdir_p('output')
File.open('output/blah.html', 'w') { |io| io.write 'moo' }