2012-07-04 13:10:47 +00:00
|
|
|
require "rubygems"
|
|
|
|
require "bundler/setup"
|
2011-10-19 13:49:54 +00:00
|
|
|
require "musicbrainz"
|
|
|
|
|
2013-01-20 12:36:52 +00:00
|
|
|
RSpec.configure do |c|
|
|
|
|
c.order = 'random'
|
|
|
|
end
|
|
|
|
|
2012-10-12 12:45:51 +00:00
|
|
|
MusicBrainz.configure do |c|
|
2013-01-20 12:36:52 +00:00
|
|
|
test_email = `git config user.email`.chomp
|
2012-10-12 12:45:51 +00:00
|
|
|
test_email = "magnolia_fan@me.com" if test_email.empty?
|
|
|
|
|
|
|
|
c.app_name = "MusicBrainzGemTestSuite"
|
|
|
|
c.app_version = MusicBrainz::VERSION
|
|
|
|
c.contact = test_email
|
2011-10-19 13:49:54 +00:00
|
|
|
|
2013-01-20 12:36:52 +00:00
|
|
|
c.cache_path = File.join(File.dirname(__FILE__), '..', 'tmp', 'spec_cache')
|
|
|
|
c.perform_caching = true
|
2012-07-04 13:10:47 +00:00
|
|
|
end
|