test/extra/deployers/test_fog.rb in nanoc-3.7.3 vs test/extra/deployers/test_fog.rb in nanoc-3.7.4

- old
+ new

@@ -12,24 +12,24 @@ :provider => 'local', :local_root => 'mylocalcloud'}) # Create site FileUtils.mkdir_p('output') - File.open('output/meow', 'w') { |io| io.write "I am a cat!" } - File.open('output/bark', 'w') { |io| io.write "I am a dog!" } + File.open('output/meow', 'w') { |io| io.write 'I am a cat!' } + File.open('output/bark', 'w') { |io| io.write 'I am a dog!' } # Create local cloud (but not bucket) FileUtils.mkdir_p('mylocalcloud') # Run fog.run # Check assert File.file?('mylocalcloud/mybucket/meow') assert File.file?('mylocalcloud/mybucket/bark') - assert_equal "I am a cat!", File.read('mylocalcloud/mybucket/meow') - assert_equal "I am a dog!", File.read('mylocalcloud/mybucket/bark') + assert_equal 'I am a cat!', File.read('mylocalcloud/mybucket/meow') + assert_equal 'I am a dog!', File.read('mylocalcloud/mybucket/bark') end end def test_run_with_dry_run if_have 'fog' do @@ -45,12 +45,12 @@ :aws_secret_access_key => 'dontcare'}, :dry_run => true) # Create site FileUtils.mkdir_p('output') - File.open('output/meow', 'w') { |io| io.write "I am a cat!" } - File.open('output/bark', 'w') { |io| io.write "I am a dog!" } + File.open('output/meow', 'w') { |io| io.write 'I am a cat!' } + File.open('output/bark', 'w') { |io| io.write 'I am a dog!' } # Create local cloud (but not bucket) FileUtils.mkdir_p('mylocalcloud') # Run @@ -78,12 +78,12 @@ File.open('mylocalcloud/mybucket/meow', 'w') { |io| io.write('meh-meow') } File.open('mylocalcloud/mybucket/bark', 'w') { |io| io.write('meh-bark') } # Create site FileUtils.mkdir_p('output') - File.open('output/meow', 'w') { |io| io.write "I am a cat!" } - File.open('output/bark', 'w') { |io| io.write "I am a dog!" } + File.open('output/meow', 'w') { |io| io.write 'I am a cat!' } + File.open('output/bark', 'w') { |io| io.write 'I am a dog!' } # Create local cloud (but not bucket) FileUtils.mkdir_p('mylocalcloud') # Run @@ -91,11 +91,11 @@ # Check refute File.file?('mylocalcloud/mybucket/etc') assert File.file?('mylocalcloud/mybucket/meow') assert File.file?('mylocalcloud/mybucket/bark') - assert_equal "I am a cat!", File.read('mylocalcloud/mybucket/meow') - assert_equal "I am a dog!", File.read('mylocalcloud/mybucket/bark') + assert_equal 'I am a cat!', File.read('mylocalcloud/mybucket/meow') + assert_equal 'I am a dog!', File.read('mylocalcloud/mybucket/bark') end end end