calabash-cucumber 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -117,7 +117,7 @@ Then /^I wait to not see "([^\"]*)"$/ do |expected_mark|
117
117
  end
118
118
 
119
119
  Then /^I wait for "([^\"]*)" to appear$/ do |name|
120
- Then %Q|I wait to see "#{name}"|
120
+ macro %Q|I wait to see "#{name}"|
121
121
  end
122
122
 
123
123
  When /^I wait for ([\d\.]+) second(?:s)?$/ do |num_seconds|
@@ -278,17 +278,17 @@ Then /^I should not see a "([^\"]*)" button$/ do |expected_mark|
278
278
  end
279
279
 
280
280
  Then /^I don't see the text "([^\"]*)"$/ do |text|
281
- Then %Q|I should not see "#{text}"|
281
+ macro %Q|I should not see "#{text}"|
282
282
  end
283
283
  Then /^I don't see the "([^\"]*)"$/ do |text|
284
- Then %Q|I should not see "#{text}"|
284
+ macro %Q|I should not see "#{text}"|
285
285
  end
286
286
 
287
287
  Then /^I see the text "([^\"]*)"$/ do |text|
288
- Then %Q|I should see "#{text}"|
288
+ macro %Q|I should see "#{text}"|
289
289
  end
290
290
  Then /^I see the "([^\"]*)"$/ do |text|
291
- Then %Q|I should see "#{text}"|
291
+ macro %Q|I should see "#{text}"|
292
292
  end
293
293
 
294
294
 
@@ -7,6 +7,14 @@ module Operations
7
7
 
8
8
  DATA_PATH = File.expand_path(File.dirname(__FILE__))
9
9
 
10
+ def macro(txt)
11
+ if self.respond_to?:step
12
+ step(txt)
13
+ else
14
+ Then txt
15
+ end
16
+ end
17
+
10
18
  def query(uiquery, *args)
11
19
  map(uiquery, :query, *args)
12
20
  end
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.2"
3
+ VERSION = "0.9.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-19 00:00:00.000000000 Z
12
+ date: 2012-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
16
- requirement: &70185428872800 !ruby/object:Gem::Requirement
16
+ requirement: &70165228348040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70185428872800
24
+ version_requirements: *70165228348040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70185428872080 !ruby/object:Gem::Requirement
27
+ requirement: &70165228346960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.7.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70185428872080
35
+ version_requirements: *70165228346960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: json
38
- requirement: &70185428871560 !ruby/object:Gem::Requirement
38
+ requirement: &70165228346120 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70185428871560
46
+ version_requirements: *70165228346120
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: net-http-persistent
49
- requirement: &70185428870820 !ruby/object:Gem::Requirement
49
+ requirement: &70165228344760 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70185428870820
57
+ version_requirements: *70165228344760
58
58
  description: calabash-cucumber drives tests for native iOS apps. You must link your
59
59
  app with calabash-ios-server framework to execute tests.
60
60
  email: