Sha256: 2969124e8052eb0ca1091944201eecb8a13228cb965c447dd5ce86fca11c7ee2
Contents?: true
Size: 891 Bytes
Versions: 3
Compression:
Stored size: 891 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) + "-" + 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.4.0-java | spec/spec_helper.rb |
cmis-0.3.0-java | spec/spec_helper.rb |
cmis-0.2.2-java | spec/spec_helper.rb |