rspectacular 0.21.1 → 0.21.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspectacular/selectors/defaults.rb +4 -4
- data/lib/rspectacular/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: 8804ff205ca1219e25397bf4f39b99ec8269b705
|
4
|
+
data.tar.gz: d78eeb107dde9ace396c9ea424cd2969193b6cf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc45ed67ccecfb5f6bc0a9026b37b2032e391264f880c6baada9e97014ef64d35d5bf976f5072cc44af2deacd2ec5e3879328f185449d26373e98f20a7a297dd
|
7
|
+
data.tar.gz: 544ae760d1adcdaee74008be1b7b227da7646d048376209e67c9d07c618470ab6e7b664a24cbc5e286ab10c84a2541eebdb392e0101e6a1b8c7983067b524874
|
@@ -29,13 +29,13 @@ module RSpectacular
|
|
29
29
|
###
|
30
30
|
# Forms
|
31
31
|
#
|
32
|
-
/the errors for (.*)/ =>
|
32
|
+
/the errors for (.*)/ => lambda { "#{sf $1}+div.error" },
|
33
33
|
|
34
34
|
###
|
35
35
|
# Windows
|
36
36
|
#
|
37
|
-
/the most recently opened window/ =>
|
38
|
-
/the alert dialog/ =>
|
37
|
+
/the most recently opened window/ => lambda { page.driver.browser.window_handles.last },
|
38
|
+
/the alert dialog/ => lambda { page.driver.browser.switch_to.alert },
|
39
39
|
|
40
40
|
###
|
41
41
|
# Date Picker Buttons
|
@@ -45,6 +45,6 @@ module RSpectacular
|
|
45
45
|
###
|
46
46
|
# Model Links
|
47
47
|
#
|
48
|
-
/the (.*) button for/ =>
|
48
|
+
/the (.*) button for/ => lambda { "##{$1.gsub(/ /, '_')}_#{args[0].class.name.underscore}_#{args[0].id}_link" }
|
49
49
|
)
|
50
50
|
end
|
data/lib/rspectacular/version.rb
CHANGED