spec/spec_helper.rb in zendesk2-0.0.23 vs spec/spec_helper.rb in zendesk2-0.1.0

- old
+ new

@@ -2,16 +2,19 @@ Bundler.require(:test) require File.expand_path("../../lib/zendesk2", __FILE__) -Dir["./spec/{support,shared}/**/*.rb"].each {|f| require f} +Dir[File.expand_path("../{support,shared}/**/*.rb", __FILE__)].each {|f| require f} if ENV["MOCK_ZENDESK"] == 'true' Zendesk2::Client.mock! end +Cistern.formatter = Cistern::Formatter::AwesomePrint + RSpec.configure do |config| config.before(:all) do Zendesk2::Client.reset! if Zendesk2::Client.mocking? end + config.filter_run_excluding(:mock_only => true) unless Zendesk2::Client.mocking? end