frank-cucumber 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -93,10 +93,16 @@ module FrankHelper
93
93
  JSON.parse( res )['orientation']
94
94
  end
95
95
 
96
+
97
+ def frankly_is_accessibility_enabled
98
+ res = get_to_uispec_server( 'accessibility_check' )
99
+ JSON.parse( res )['accessibility_enabled'] == 'true'
100
+ end
101
+
96
102
  def wait_for_frank_to_come_up
97
103
  num_consec_successes = 0
98
104
  num_consec_failures = 0
99
- Timeout.timeout(60) do
105
+ Timeout.timeout(20) do
100
106
  while num_consec_successes <= 6
101
107
  if frankly_ping
102
108
  num_consec_failures = 0
@@ -114,8 +120,12 @@ module FrankHelper
114
120
  end
115
121
  puts ''
116
122
  end
117
- end
118
123
 
124
+ unless frankly_is_accessibility_enabled
125
+ raise "ACCESSIBILITY DOES NOT APPEAR TO BE ENABLED ON YOUR SIMULATOR. Hit the home button, go to settings, select Accessibility, and turn the inspector on."
126
+ end
127
+ end
128
+
119
129
  def frankly_ping
120
130
  get_to_uispec_server('')
121
131
  return true
@@ -1,5 +1,5 @@
1
1
  module Frank
2
2
  module Cucumber
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 4
9
- version: 0.5.4
8
+ - 5
9
+ version: 0.5.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pete Hodgson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-02 00:00:00 -08:00
18
+ date: 2011-03-04 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency