utensils 0.0.8 → 0.0.9

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.
@@ -1,10 +1,4 @@
1
- module Capybara
2
- module Node
3
- module Finders
4
- def find(*args)
5
- args = '#' + ApplicationController.helpers.dom_id(args.first) if args.first.respond_to?(:to_key)
6
- wait_until { first(*args) or raise_find_error(*args) }
7
- end
8
- end
9
- end
10
- end
1
+ Capybara.add_selector :record do
2
+ xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) }
3
+ match { |record| record.is_a?(ActiveRecord::Base) }
4
+ end
@@ -1,3 +1,3 @@
1
1
  module Utensils
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utensils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-07 00:00:00.000000000 Z
12
+ date: 2012-11-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Rspec stuff we use over and over again
15
15
  email:
@@ -48,7 +48,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
48
  version: '0'
49
49
  segments:
50
50
  - 0
51
- hash: 586303044065267467
51
+ hash: -1672499304736267822
52
52
  required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  segments:
59
59
  - 0
60
- hash: 586303044065267467
60
+ hash: -1672499304736267822
61
61
  requirements: []
62
62
  rubyforge_project:
63
63
  rubygems_version: 1.8.23