watir-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/watir/rails.rb +3 -3
- data/lib/watir/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: 87efb4cf3e9c8332514ba24bc559664069fa236a
|
4
|
+
data.tar.gz: d428780873e3ba3a54f7551e8dae9fb80b51cdba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8138234fc90e9681d1aac5134c71c5c533d4aa4e6af2947f58af0e8dec0c2019c89c6f6b3216720315ddab586b669d6dfac55ba84d2ec6b7dc1bf66c1bb11bdf
|
7
|
+
data.tar.gz: a5a98f91f2fd4b126bea7eedda1f90bb8beaae999654cb901b5a8bf181a8ec4d882b73e43b425e2313d7332a5a057fe61dca104eb11d59da034e3df829e5e5e7
|
data/lib/watir/rails.rb
CHANGED
@@ -63,15 +63,15 @@ module Watir
|
|
63
63
|
# @return [Boolean] true if exceptions should be ignored, false otherwise.
|
64
64
|
def ignore_exceptions?
|
65
65
|
unless @ignore_exceptions
|
66
|
-
|
66
|
+
show_exceptions = if legacy_rails?
|
67
67
|
::Rails.configuration.action_dispatch.show_exceptions
|
68
68
|
else
|
69
69
|
::Rails.application.config.action_dispatch.show_exceptions
|
70
70
|
end
|
71
71
|
|
72
|
-
if
|
72
|
+
if show_exceptions
|
73
73
|
warn '[WARN] "action_dispatch.show_exceptions" is set to "true", disabling watir-rails exception catcher.'
|
74
|
-
@ignore_exceptions =
|
74
|
+
@ignore_exceptions = true
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
data/lib/watir/version.rb
CHANGED