Sha256: cb77e965780e365ab35fad3fab62f6a006b6c99fe373c8d00270f4def294813d

Contents?: true

Size: 689 Bytes

Versions: 6

Compression:

Stored size: 689 Bytes

Contents

Shindo.tests('Cifrado | CLI#list') do

  cleanup

  tests '#list' do
    test 'container has 1 element' do
      obj = create_bin_payload 1
      cli = Cifrado::CLI.new
      cli.options = {
        :insecure => true,
        :no_progressbar => true
      }
      cli.upload 'cifrado-tests', obj
      (cli.list 'cifrado-tests').size == 1
    end
    test 'cifrado-tests-list container exists' do
      dir = client.service.directories.create :key => 'cifrado-tests-list'
      cli = Cifrado::CLI.new
      cli.options = {
        :insecure => true,
        :no_progressbar => true
      }
      !(cli.list.find { |d| d == 'cifrado-tests-list' }).nil?
      dir.destroy
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cifrado-0.2.1 tests/cli/list_tests.rb
cifrado-0.2.0 tests/cli/list_tests.rb
cifrado-0.1.3 tests/cli/list_tests.rb
cifrado-0.1.2 tests/cli/list_tests.rb
cifrado-0.1.1 tests/cli/list_tests.rb
cifrado-0.1 tests/cli/list_tests.rb