musicbrainz/spec/spec_helper.rb
Jason Voegele ad4a53f9ce Update to use modern RSpec syntax and conventions
* Replace `should` syntax with `expect` syntax.
* Add pry as a development dependency.
* Fix failing specs.
2015-03-13 15:47:27 -04:00

21 lines
477 B
Ruby

require "rubygems"
require "bundler/setup"
require "musicbrainz"
require "pry"
RSpec.configure do |c|
c.order = 'random'
end
MusicBrainz.configure do |c|
test_email = `git config user.email`.chomp
test_email = "magnolia_fan@me.com" if test_email.empty?
c.app_name = "MusicBrainzGemTestSuite"
c.app_version = MusicBrainz::VERSION
c.contact = test_email
c.cache_path = File.join(File.dirname(__FILE__), '..', 'tmp', 'spec_cache')
c.perform_caching = true
end