capybara-select-2 0.2.0 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9678aa226fd30f77d126dbc9910dbfb52c6c8d38
4
- data.tar.gz: c204deba3c13b6e1e23c71d21515f9474b4e09f7
3
+ metadata.gz: c7fde4e5708c362a8ec810faae1162f2612b97cf
4
+ data.tar.gz: ef7c7bb277d4ee549e809386944e2f69977fafd9
5
5
  SHA512:
6
- metadata.gz: 57acf0411c48a5a2a82616d8f944cb17e0b49b11088068430f209c18764b9d2bf17cbfc65fcb55ed4f1080052b57af94e881c664ff8823cd1f66cc9becb4e418
7
- data.tar.gz: 6856a1f8b811ae3a4febadac8979d36facf4a32768485fb38b902b0ac2947699c366f7ed32898f5338757d365f9b77b31e394cb42127adb8e26e7d5a04856e45
6
+ metadata.gz: a60824ea4f343bc2c9dd072c80cd655260a6bb17dafa613ca8f99ed33e38d72414a458718523520b64e0029103dcb28309ea0ef1492103d642e0aad0fa21df86
7
+ data.tar.gz: 12e53d44c0a580b1dbcbfaaa3d5abcb05a72ee4e7cf516a16ceebe1d5464cbebb1492b87a98bd77b4fa2e8d5d6486c1ca52c2e098fa6b5e139803ca110b217b2
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # CapybaraSelect2 for select2 version 2/3/4
2
+ !!! You need to specify which version of select2 you are using. See [Configuration](https://github.com/Hirurg103/capybara_select2#configuration)
2
3
 
3
4
  ## Installation
4
5
 
@@ -24,7 +25,7 @@ Or install it yourself as:
24
25
 
25
26
  In your spec_helper.rb
26
27
 
27
- ```
28
+ ```ruby
28
29
  RSpec.configure do |config|
29
30
  config.include CapybaraSelect2
30
31
  end
@@ -34,7 +35,7 @@ end
34
35
 
35
36
  In your env.rb
36
37
 
37
- ```
38
+ ```ruby
38
39
  World CapybaraSelect2
39
40
  ```
40
41
 
@@ -42,7 +43,7 @@ World CapybaraSelect2
42
43
 
43
44
  CapybaraSelect2 expects select2 version 4 by default. If you are using version 3 or 2 please specify it in your spec helper
44
45
 
45
- ```
46
+ ```ruby
46
47
  CapybaraSelect2::Config.select2_version = 3
47
48
 
48
49
  # or
@@ -39,7 +39,7 @@ module CapybaraSelect2
39
39
  find(search_input).set value
40
40
  end
41
41
 
42
- find(option, text: value).click
42
+ find(:xpath, '//body').find(option, text: value).click
43
43
  end
44
44
 
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module CapybaraSelect2
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-select-2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Kavalionak