Browse files

[sync] single quotes

  • Loading branch information...
1 parent 4d4a0af commit 8d46f6035217d2ba8ccd0e4f9a913a9391d74dae @portertech committed Jul 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/cloudfiles_container_test.rb
View
4 test/cloudfiles_container_test.rb
@@ -474,14 +474,14 @@ def test_count
def test_sync_to
connection = stub(:storagehost => 'test.storage.example', :storagepath => '/dummy/path', :storageport => 443, :storagescheme => 'https', :cdnmgmthost => 'cdm.test.example', :cdnmgmtpath => '/dummy/path', :cdnmgmtport => 443, :cdnmgmtscheme => 'https', :cdn_available? => false, :cdnurl => 'http://foo.test.example/container', :storageurl => 'http://foo.test.example/container', :authtoken => "dummy token")
SwiftClient.stubs(:head_container).returns({'x-container-sync-to' => 'test_container_2','x-container-sync-key' => 'foo'})
- @container = CloudFiles::Container.new(connection, "test_container")
+ @container = CloudFiles::Container.new(connection, 'test_container')
assert_equal @container.sync_to, 'test_container_2'
end
def test_sync_key
connection = stub(:storagehost => 'test.storage.example', :storagepath => '/dummy/path', :storageport => 443, :storagescheme => 'https', :cdnmgmthost => 'cdm.test.example', :cdnmgmtpath => '/dummy/path', :cdnmgmtport => 443, :cdnmgmtscheme => 'https', :cdn_available? => false, :cdnurl => 'http://foo.test.example/container', :storageurl => 'http://foo.test.example/container', :authtoken => "dummy token")
SwiftClient.stubs(:head_container).returns({'x-container-sync-to' => 'test_container_2','x-container-sync-key' => 'foo'})
- @container = CloudFiles::Container.new(connection, "test_container")
+ @container = CloudFiles::Container.new(connection, 'test_container')
assert_equal @container.sync_key, 'foo'
end

0 comments on commit 8d46f60

Please sign in to comment.