Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[sync] single quotes

  • Loading branch information...
commit 8d46f6035217d2ba8ccd0e4f9a913a9391d74dae 1 parent 4d4a0af
@portertech authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.