From 4cce77ef0d6c326be59eec30688b86205e7b68cc Mon Sep 17 00:00:00 2001 From: Mike Gaffney Date: Sun, 14 Jun 2009 22:37:35 -0500 Subject: [PATCH 1/2] 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 ab49b7da..bb05b215 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 From a0b10d99167f12eb1327700d5a4467217d64b943 Mon Sep 17 00:00:00 2001 From: Mike Gaffney Date: Sun, 14 Jun 2009 22:58:33 -0500 Subject: [PATCH 2/2] requiring specific rspec version --- Rakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Rakefile b/Rakefile index d974f590..4975a0d4 100644 --- a/Rakefile +++ b/Rakefile @@ -2,6 +2,7 @@ require "rake/gempackagetask" require 'rake/rdoctask' require "rake/clean" +gem "rspec", "1.2.6" require 'spec' require 'spec/rake/spectask' require 'spec/rake/verify_rcov'