calabash-cucumber 0.9.101 → 0.9.104

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- calabash-cucumber (0.9.101)
4
+ calabash-cucumber (0.9.104)
5
5
  CFPropertyList
6
6
  bundler (~> 1.1)
7
7
  cucumber
8
8
  httpclient (~> 2.2.7)
9
9
  json
10
- location-one (~> 0.0.5)
10
+ location-one (~> 0.0.6)
11
11
  sim_launcher (= 0.3.8)
12
12
  slowhandcuke
13
13
 
@@ -15,20 +15,21 @@ GEM
15
15
  remote: http://rubygems.org/
16
16
  specs:
17
17
  CFPropertyList (2.1.1)
18
- builder (3.0.0)
18
+ builder (3.1.3)
19
19
  cucumber (1.2.1)
20
20
  builder (>= 2.1.2)
21
21
  diff-lcs (>= 1.1.3)
22
22
  gherkin (~> 2.11.0)
23
23
  json (>= 1.4.6)
24
24
  diff-lcs (1.1.3)
25
- geocoder (1.1.2)
26
- gherkin (2.11.1)
25
+ geocoder (1.1.3)
26
+ gherkin (2.11.2)
27
27
  json (>= 1.4.6)
28
28
  httpclient (2.2.7)
29
29
  json (1.7.5)
30
- location-one (0.0.5)
30
+ location-one (0.0.6)
31
31
  geocoder (~> 1.1)
32
+ httpclient
32
33
  json
33
34
  rack (1.4.1)
34
35
  rack-protection (1.2.0)
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_dependency( "CFPropertyList" )
22
22
  s.add_dependency( "sim_launcher", "0.3.8") #Recommended by Pete for now
23
23
  s.add_dependency( "slowhandcuke" )
24
- s.add_dependency( "location-one", "~>0.0.5")
24
+ s.add_dependency( "location-one", "~>0.0.6")
25
25
  s.add_dependency( "httpclient","~> 2.2.7")
26
26
  s.add_dependency( "bundler", "~> 1.1")
27
27
 
@@ -14,3 +14,7 @@ IRB.conf[:HISTORY_FILE] = ".irb-history"
14
14
 
15
15
  require 'calabash-cucumber/operations'
16
16
  include Calabash::Cucumber::Operations
17
+
18
+ def embed(x,y=nil,z=nil)
19
+ puts "Screenshot at #{x}"
20
+ end
@@ -46,6 +46,11 @@ Then /^I (?:press|touch) list item number (\d+)$/ do |index|
46
46
  sleep(STEP_PAUSE)
47
47
  end
48
48
 
49
+ Then /^I (?:press|touch) list item "([^\"]*)"$/ do |cell_name|
50
+ touch("tableViewCell marked:'#{cell_name}'")
51
+ sleep(STEP_PAUSE)
52
+ end
53
+
49
54
  Then /^I toggle the switch$/ do
50
55
  touch("switch")
51
56
  sleep(STEP_PAUSE)
@@ -68,6 +73,12 @@ end
68
73
 
69
74
 
70
75
  ## -- Entering text -- ##
76
+
77
+ Then /^I enter "([^\"]*)" into the "([^\"]*)" field$/ do |text_to_type, field_name|
78
+ set_text("textField marked:'#{field_name}'", text_to_type)
79
+ sleep(STEP_PAUSE)
80
+ end
81
+
71
82
  Then /^I enter "([^\"]*)" into the "([^\"]*)" (?:text|input) field$/ do |text_to_type, field_name|
72
83
  set_text("textField placeholder:'#{field_name}'", text_to_type)
73
84
  sleep(STEP_PAUSE)
@@ -18,6 +18,25 @@ module Calabash
18
18
  map(uiquery, :query, *args)
19
19
  end
20
20
 
21
+ def perform(*args)
22
+ if args.length == 1
23
+ #simple selector
24
+ hash = args.first
25
+ q = hash[:on]
26
+ hash = hash.dup
27
+ hash.delete(:on)
28
+ args = [hash]
29
+ elsif args.length == 2
30
+ q = args[1][:on]
31
+ if args[0].is_a?Hash
32
+ args = [args[0]]
33
+ else
34
+ args = args[0]
35
+ end
36
+ end
37
+ map(q, :query_all, *args)
38
+ end
39
+
21
40
  def query_all(uiquery, *args)
22
41
  map(uiquery, :query_all, *args)
23
42
  end
@@ -5,6 +5,16 @@ module Calabash
5
5
  module TestsHelpers
6
6
  include Calabash::Cucumber::Core
7
7
 
8
+ def navigation_path(*args)
9
+
10
+ #navigation_path(
11
+ # [:a , 2],
12
+ # [""],
13
+ #)
14
+
15
+
16
+ end
17
+
8
18
  def element_does_not_exist(uiquery)
9
19
  query(uiquery).empty?
10
20
  end
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.101"
4
- FRAMEWORK_VERSION = "0.9.100"
3
+ VERSION = "0.9.104"
4
+ FRAMEWORK_VERSION = "0.9.103"
5
5
  end
6
6
  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.101
4
+ version: 0.9.104
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-05 00:00:00.000000000 Z
12
+ date: 2012-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
@@ -98,7 +98,7 @@ dependencies:
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: 0.0.5
101
+ version: 0.0.6
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,7 +106,7 @@ dependencies:
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: 0.0.5
109
+ version: 0.0.6
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: httpclient
112
112
  requirement: !ruby/object:Gem::Requirement