softwear-lib 1.4.1 → 1.4.2
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 +4 -4
- data/lib/softwear/lib/spec.rb +7 -0
- data/lib/softwear/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8eb48c81ed68fa37eabeb5b919659047a02557bc
|
|
4
|
+
data.tar.gz: b3be31e2a6a6d80710c6982fe7f7806070773768
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33189b7cea270d4f368a672a520abd837570949153eb0dde5cd4cf9404355fee7ee5d114be61dd0d303a45c9076b4bd51de01c833af2ef204490811615d17303
|
|
7
|
+
data.tar.gz: e7e99c9aaf1713d198b200771d93dbd803eeea959e41ff2fcb3d9fb241d95d462c5206b0dcf166555927990936582015f47c5c0ee72af5befb10fe869ea456c8
|
data/lib/softwear/lib/spec.rb
CHANGED
|
@@ -93,6 +93,10 @@ module Softwear::Lib
|
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
find("#{selector}+span").click
|
|
96
|
+
|
|
97
|
+
old_scopes = @scopes
|
|
98
|
+
@scopes = [nil]
|
|
99
|
+
|
|
96
100
|
find('input.select2-search__field').set(text)
|
|
97
101
|
result = first('li.select2-results__option')
|
|
98
102
|
if result.text == "No results found"
|
|
@@ -100,6 +104,9 @@ module Softwear::Lib
|
|
|
100
104
|
else
|
|
101
105
|
result.click
|
|
102
106
|
end
|
|
107
|
+
|
|
108
|
+
ensure
|
|
109
|
+
@scopes = old_scopes if old_scopes
|
|
103
110
|
end
|
|
104
111
|
end
|
|
105
112
|
|
data/lib/softwear/lib/version.rb
CHANGED