Sha256: 413a0f11735060e29b141ab2f7fd906bb449536e6d03c82e73fa46fc4f823bb6

Contents?: true

Size: 865 Bytes

Versions: 3

Compression:

Stored size: 865 Bytes

Contents

require 'cmis'
require 'tmpdir'
def file_path( *paths )
  File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', *paths))
end


def random_name
  rand(16**16).to_s(16)
end

def create_random_doc(parent)
  file = file_path("text_file.txt")
  file_name = random_name + ".txt"
  id = parent.create_cmis_document(file_name, file)
  
  parent.session.get_object(id)    
end

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = 'random'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cmis-0.2.1-java spec/spec_helper.rb
cmis-0.2.0-java spec/spec_helper.rb
cmis-0.1.0-java spec/spec_helper.rb