ENV['MOCK_ZENDESK'] ||= 'true' Bundler.require(:test) require File.expand_path("../../lib/zendesk2", __FILE__) Dir["./spec/{support,shared}/**/*.rb"].each {|f| require f} if ENV["MOCK_ZENDESK"] == 'true' Zendesk2::Client.mock! end RSpec.configure do |config| config.before(:all) do Zendesk2::Client.reset! if Zendesk2::Client.mocking? end end