1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00
mpd-client/spec/spec_helper.rb
2013-12-12 11:51:59 +00:00

17 lines
355 B
Ruby

ENV['RACK_ENV'] = 'test'
require File.expand_path('../lib/mpd_client', __dir__)
require 'rspec'
require 'rspec/mocks'
require 'rack/test'
RSpec.configure do |config|
config.include Rack::Test::Methods
config.before(:each) do
allow_message_expectations_on_nil
MPDClient::Connection.any_instance.stub(:connected?).and_return(true)
end
end