spec_helper.rb revision a06b758dc863e147d288497ee69491afc2d23b7d
ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8chenning mueller# This file is copied to spec/ when you run 'rails generate rspec:install'
ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8chenning muellerrequire File.expand_path("../../test/shared_helper", __FILE__)
66ae4e01390ec8ddfd3f6fa5361095d5d2f1c2bdJulian Kornbergerrequire File.expand_path("../../config/environment", __FILE__)
66ae4e01390ec8ddfd3f6fa5361095d5d2f1c2bdJulian Kornbergerrequire Rails.root.join('config', 'database_cleaner.rb')
ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8chenning mueller# Requires supporting ruby files with custom matchers and macros, etc,
ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8chenning mueller# in spec/support/ and its subdirectories.
ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8chenning muellerDir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
66ae4e01390ec8ddfd3f6fa5361095d5d2f1c2bdJulian Kornberger Rails.root + 'test/fixtures/ontologies/xml/' + name
ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8chenning muellerdef add_fixture_file(repository, relative_file)
ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8chenning mueller path = File.join(Rails.root, 'test', 'fixtures', 'ontologies', relative_file)
RSpec.configure do |config|
config.include Devise::TestHelpers, type: :controller