test/extra/deployers/test_rsync.rb in nanoc-3.7.4 vs test/extra/deployers/test_rsync.rb in nanoc-3.7.5
- old
+ new
@@ -1,9 +1,8 @@
# encoding: utf-8
class Nanoc::Extra::Deployers::RsyncTest < Nanoc::TestCase
-
def test_run_without_dst
# Create deployer
rsync = Nanoc::Extra::Deployers::Rsync.new(
'output/',
{})
@@ -24,11 +23,11 @@
def test_run_with_erroneous_dst
# Create deployer
rsync = Nanoc::Extra::Deployers::Rsync.new(
'output/',
- { :dst => 'asdf/' })
+ { dst: 'asdf/' })
# Mock run_shell_cmd
def rsync.run_shell_cmd(args)
@shell_cms_args = args
end
@@ -44,11 +43,11 @@
def test_run_everything_okay
# Create deployer
rsync = Nanoc::Extra::Deployers::Rsync.new(
'output',
- { :dst => 'asdf' })
+ { dst: 'asdf' })
# Mock run_shell_cmd
def rsync.run_shell_cmd(args)
@shell_cms_args = args
end
@@ -66,12 +65,12 @@
def test_run_everything_okay_dry
# Create deployer
rsync = Nanoc::Extra::Deployers::Rsync.new(
'output',
- { :dst => 'asdf' },
- :dry_run => true)
+ { dst: 'asdf' },
+ dry_run: true)
# Mock run_shell_cmd
def rsync.run_shell_cmd(args)
@shell_cms_args = args
end
@@ -84,7 +83,6 @@
assert_equal(
['echo', 'rsync', opts, 'output/', 'asdf'].flatten,
rsync.instance_eval { @shell_cms_args }
)
end
-
end