capybara-select2 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ module Capybara
7
7
  raise "Must pass a hash containing 'from'" if not options.is_a?(Hash) or not options.has_key?(:from)
8
8
  select_name = options[:from]
9
9
 
10
- select2_container=find("label", text: select_name).find(:xpath, '..').find(".select2-container")
10
+ select2_container=first("label", text: select_name).find(:xpath, '..').find(".select2-container")
11
11
  select2_container.find(".select2-choice").click
12
12
 
13
13
  find(".select2-drop li", text: value).click
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Select2
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-select2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: