removing rspec warnings

This commit is contained in:
Mike Gaffney 2009-06-14 22:37:35 -05:00
parent f8af783185
commit 4cce77ef0d
1 changed files with 13 additions and 3 deletions

View File

@ -1,8 +1,18 @@
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)