revo-webrat 0.7.0 → 0.7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -332,7 +332,13 @@ module Webrat
332
332
  end
333
333
 
334
334
  def scoped_dom
335
- @scope.dom.css(@selector).first
335
+ begin
336
+ # css selector?
337
+ @scope.dom.css(@selector).first
338
+ rescue Nokogiri::CSS::SyntaxError => e
339
+ # xpath selector?
340
+ @scope.dom.xpath(@selector).first
341
+ end
336
342
  end
337
343
 
338
344
  def locate_field(field_locator, *field_types) #:nodoc:
data/revo-webrat.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{revo-webrat}
5
- s.version = "0.7.0"
5
+ s.version = "0.7.0.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Bryan Helmkamp", "Revo"]
9
- s.date = %q{2010-02-03}
9
+ s.date = %q{2010-01-17}
10
10
  s.description = %q{Webrat lets you quickly write expressive and robust acceptance tests
11
11
  for a Ruby web application. It supports simulating a browser inside
12
12
  a Ruby process to avoid the performance hit and browser dependency of
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revo-webrat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Helmkamp
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-02-03 00:00:00 +11:00
13
+ date: 2010-01-17 00:00:00 +11:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency