Sha256: 7c2909cff3ee64ff447f22eb3ae83b7f24939bfe81be1fb9f8b81deacb73f296

Contents?: true

Size: 792 Bytes

Versions: 9

Compression:

Stored size: 792 Bytes

Contents

require 'pione/test-helper'

describe 'Pione::Location::DropboxScheme' do
  it 'should be suported by PIONE' do
    URI.parse("dropbox:/").should.be.pione
  end

  it 'should be storage' do
    URI.parse("dropbox:/").should.be.storage
  end

  it 'should be dropbox scheme URI' do
    URI.parse("dropbox:/Pione").should.kind_of Pione::Location::DropboxScheme
  end

  it 'should get scheme name' do
    URI.parse("dropbox:/Pione").scheme.should == 'dropbox'
  end

  it 'should get the path of "dropbox:/Pione"' do
    URI.parse("dropbox:/Pione").path.should == '/Pione'
  end

  it 'should get the path of "dropbox:/"' do
    URI.parse("dropbox:/").path.should == "/"
  end

  it 'should get the path of "dropbox:/a/b/c"' do
    URI.parse("dropbox:/a/b/c").path.should == "/a/b/c"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pione-0.5.0 test/location/spec_dropbox-scheme.rb
pione-0.5.0.alpha.2 test/location/spec_dropbox-scheme.rb
pione-0.5.0.alpha.1 test/location/spec_dropbox-scheme.rb
pione-0.4.2 test/location/spec_dropbox-scheme.rb
pione-0.4.1 test/location/spec_dropbox-scheme.rb
pione-0.4.0 test/location/spec_dropbox-scheme.rb
pione-0.3.2 test/location/spec_dropbox-scheme.rb
pione-0.3.1 test/location/spec_dropbox-scheme.rb
pione-0.3.0 test/location/spec_dropbox-scheme.rb