Merge commit 'origin/master'
This commit is contained in:
commit
1b5cf4b0e6
1
Rakefile
1
Rakefile
|
@ -2,6 +2,7 @@
|
||||||
require "rake/gempackagetask"
|
require "rake/gempackagetask"
|
||||||
require 'rake/rdoctask'
|
require 'rake/rdoctask'
|
||||||
require "rake/clean"
|
require "rake/clean"
|
||||||
|
gem "rspec", "1.2.6"
|
||||||
require 'spec'
|
require 'spec'
|
||||||
require 'spec/rake/spectask'
|
require 'spec/rake/spectask'
|
||||||
require 'spec/rake/verify_rcov'
|
require 'spec/rake/verify_rcov'
|
||||||
|
|
|
@ -1,8 +1,18 @@
|
||||||
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")
|
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")
|
||||||
|
|
||||||
describe Webrat::Configuration do
|
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
|
it "should have a mode" do
|
||||||
Webrat.configuration.should respond_to(:mode)
|
Webrat.configuration.should respond_to(:mode)
|
||||||
|
|
Loading…
Reference in New Issue