chop 0.23.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 925b1cafceddaff0b665cc7478d808ef08a04cfc
4
- data.tar.gz: 7f9198af9e9d99946c8735ae2761a333d32aa219
3
+ metadata.gz: 8eb661df04066687a6ef29a3b1102432ab89c8b0
4
+ data.tar.gz: e71fa2c6afa9a3b46b931af089345ed7dc9e8c9a
5
5
  SHA512:
6
- metadata.gz: 1b745708d9f7de22ac6ef9475b9d5d4b0732c1ebf80712e8b8052418a3b1a82b47419d026afc1219629280207f48852639fa709ab5c0340a97d9bfd0969a9b5b
7
- data.tar.gz: 4a093d72ae1d391cff2bb48688c3b5513602a1c2e72a5886845e1fa57a4c6e4b4614fc46b229fb6dd6ed6e9eba90c757c7bf5211a07d194b09827fb88ba632a9
6
+ metadata.gz: 4cc7d0ce15f9b543486c76af8a38f3f37a09f5ffb616f6a0d7b81075e7ea7218d7f8d52808b71f50ac8170f8c92f2a3eaeca88f77edd6edaf74a8feb3b3ee2c6
7
+ data.tar.gz: 1204aa9099e76cac748a40003b0ed60aeaef4b5320e17a7d218cb0bbcadddd8fa2a45a20e55c3dfc45e79d4717ba1a0f40f4f78569afae27fb02f686ace8eb37
@@ -135,7 +135,7 @@ module Chop
135
135
 
136
136
  def fill_in!
137
137
  if nonstandard_labelling?
138
- session.choose value
138
+ value_field.click
139
139
  else
140
140
  session.choose label
141
141
  end
@@ -152,7 +152,7 @@ module Chop
152
152
  end
153
153
 
154
154
  def value_field
155
- session.find_field(value)
155
+ session.first("[name='#{field[:name]}'][value='#{value}']")
156
156
  rescue Capybara::ElementNotFound
157
157
  {}
158
158
  end
@@ -1,3 +1,3 @@
1
1
  module Chop
2
- VERSION = "0.23.0"
2
+ VERSION = "0.23.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-26 00:00:00.000000000 Z
11
+ date: 2018-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord