From 4cce77ef0d6c326be59eec30688b86205e7b68cc Mon Sep 17 00:00:00 2001 From: Mike Gaffney Date: Sun, 14 Jun 2009 22:37:35 -0500 Subject: [PATCH] removing rspec warnings --- spec/private/core/configuration_spec.rb | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/spec/private/core/configuration_spec.rb b/spec/private/core/configuration_spec.rb index ab49b7d..bb05b21 100755 --- a/spec/private/core/configuration_spec.rb +++ b/spec/private/core/configuration_spec.rb @@ -1,9 +1,19 @@ require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper") describe Webrat::Configuration do - predicate_matchers[:parse_with_nokogiri] = :parse_with_nokogiri? - predicate_matchers[:open_error_files] = :open_error_files? - + + Spec::Matchers.define :parse_with_nokogiri do + match do |config| + config.parse_with_nokogiri? + end + end + + Spec::Matchers.define :open_error_files do + match do |config| + config.open_error_files? + end + end + it "should have a mode" do Webrat.configuration.should respond_to(:mode) end