spec_helper.rb revision 022df7f893582e7e8efffce816ae27f6d1015766
# This file is copied to spec/ when you run 'rails generate rspec:install'
require 'addressable/template'
# Requires supporting ruby files with custom matchers and macros, etc,
end
end
end
end
portion =
if ext
"#{path}.#{ext}"
else
"#{path}.#{path.to_s.split('/').first}"
end
end
end
end
specific = ''
# %2F is percent-encoding for forward slash /
return %r{#{hets_instance.uri}/dg/.*#{specific}}
end
end
before do
end
end
end
dummy_user = create :user
end
"https://masterthesis.rightsrestricted.com/ontohub/#{name}.json"
end
# includes the convenience-method `define_ontology('name')`
end
# Recording HTTP Requests
VCR.configure do |c|
c.ignore_localhost = true
'127.0.0.1',
'localhost',
end
RSpec.configure do |config|
# ## Mock Framework
# config.mock_with :mocha
# config.mock_with :flexmock
# config.mock_with :rr
end
end
end
config.include Devise::TestHelpers, type: :controller
# 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"
config.mock_with :rspec do |mocks|
end
end