Skip to content

Commit

Permalink
Merge commit 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Jun 15, 2009
2 parents a015931 + a0b10d9 commit 1b5cf4b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions Rakefile
Expand Up @@ -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'
Expand Down
16 changes: 13 additions & 3 deletions 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
Expand Down

0 comments on commit 1b5cf4b

Please sign in to comment.