spec_helper.rb revision cfd2c55efa79cd0073bdfc17e68ff1b05fab7255
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# This file is copied to spec/ when you run 'rails generate rspec:install'
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmrequire File.expand_path("../../test/shared_helper", __FILE__)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmrequire File.expand_path("../../config/environment", __FILE__)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrmrequire 'database_cleaner'
80ba110d6d9475e3ce42d1563c74a980362bebf7johanengelen# Setting the default for sidekiq testing
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# some specs rely on this being the default.
71146abe8aba032d73788a625fee5769a581bd3ccilix# However unit-tests use a different default (fake!)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# Requires supporting ruby files with custom matchers and macros, etc,
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm# in spec/support/ and its subdirectories.
09ba3247163582bf2e30e17c4c154aa259ce038acilixDir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm path = File.join(Rails.root, 'test', 'fixtures', 'ontologies', relative_file)
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm version = repository.save_file path, basename, "#{basename} added", dummy_user
56542e2b97ec8826cc692153b0e2d4f5ac8ef913johanengelen Ontology.stubs(:file_extensions_distributed).returns(
3266678238e05b3512e7da3a76c84f5ce4c93938cilix %w[owl obo hs exp maude elf hol isa thy prf omdoc hpf clf clif xml fcstd rdf xmi qvt tptp gen_trm baf].
c27006137a3ad49e074b97b3297db753e1ac8eefcilix config.infer_base_class_for_anonymous_controllers = true
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm # Run specs in random order to surface order dependencies. If you find an
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm # order dependency and want to debug it, you can fix the order by providing