spec/spec_helper.rb in vkontakte_api-0.2.1 vs spec/spec_helper.rb in vkontakte_api-1.0.rc

- old
+ new

@@ -1,2 +1,20 @@ require 'vkontakte_api' require 'pry' + +RSpec::Matchers.define :log_requests do + match do |logger| + logger.log_requests? + end +end + +RSpec::Matchers.define :log_errors do + match do |logger| + logger.log_errors? + end +end + +RSpec::Matchers.define :log_responses do + match do |logger| + logger.log_responses? + end +end