calabash-cucumber 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/calabash +61 -9
- data/calabash-cucumber.gemspec +1 -1
- data/lib/calabash-cucumber/version.rb +1 -1
- metadata +11 -11
data/bin/calabash
CHANGED
@@ -3,19 +3,71 @@
|
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
5
|
features_dir = File.join( FileUtils.pwd, "features" )
|
6
|
+
source_dir = File.join( File.dirname(__FILE__), '..', 'features-skeleton' )
|
7
|
+
|
8
|
+
if File.exists?( features_dir )
|
9
|
+
if (ARGV.length == 1 && ARGV[0] == 'update')
|
10
|
+
features_dir = File.join( FileUtils.pwd, "features_template")
|
11
|
+
if File.exists?( features_dir )
|
12
|
+
puts "Working directory #{features_dir} already exist."
|
13
|
+
puts "Please move it and run calabash update again to continue."
|
14
|
+
exit 2
|
15
|
+
end
|
16
|
+
FileUtils.cp_r( source_dir, features_dir)
|
17
|
+
puts <<EOS
|
18
|
+
|
19
|
+
----------- Instructions -----------
|
20
|
+
|
21
|
+
Copied files to #{features_dir}.
|
22
|
+
You must manually merge files from
|
23
|
+
|
24
|
+
features_template/step_definitions
|
25
|
+
features_template/support
|
26
|
+
|
27
|
+
To your ./features dir.
|
28
|
+
|
29
|
+
If you haven't edited any of the files:
|
30
|
+
|
31
|
+
features/support/env.rb
|
32
|
+
features/support/hooks.rb
|
33
|
+
features/step_definitions/ilesspainful_steps.rb
|
34
|
+
|
35
|
+
You can simply copy files from
|
6
36
|
|
7
|
-
|
8
|
-
|
37
|
+
features_template/step_definitions
|
38
|
+
features_template/support
|
39
|
+
|
40
|
+
to the corresponding dirs in features.
|
41
|
+
You must also delete: features/step_definitions/ilesspainful_steps.rb
|
42
|
+
|
43
|
+
Otherwise, if you have edited any of the files,
|
44
|
+
you must manually merge them with those of features_template.
|
45
|
+
|
46
|
+
It is important that you remove any reference to
|
47
|
+
the ilesspainfulclient-cucumber gem if present in your files.
|
48
|
+
|
49
|
+
When you are done, you should delete features_template.
|
50
|
+
|
51
|
+
If in doubt, contact Karl Krukow <karl@lesspainful.com>
|
52
|
+
-----------------------------------
|
53
|
+
EOS
|
54
|
+
exit
|
55
|
+
else
|
56
|
+
puts "A features directory already exists. I won't overwrite it. Giving up."
|
57
|
+
puts "Run calabash update for update instructions."
|
58
|
+
end
|
9
59
|
exit 1
|
10
60
|
else
|
11
|
-
puts "I'm about to create a subdirectory called features
|
61
|
+
puts "I'm about to create a subdirectory called features."
|
62
|
+
puts "features will contain all your calabash tests."
|
63
|
+
puts "Please hit return to confirm that's what you want."
|
12
64
|
exit 2 unless STDIN.gets.chomp == ''
|
13
|
-
end
|
14
65
|
|
15
|
-
|
66
|
+
FileUtils.cp_r( source_dir, features_dir )
|
16
67
|
|
17
|
-
|
68
|
+
puts "features subdirectory created. Try starting you app in the iOS simulator "
|
69
|
+
puts "using the Calabash target (see calabash-ios-server for how to create the target).\n"
|
70
|
+
puts "Then try executing \n\nSTEP_PAUSE=2 OS=ios5 DEVICE=iphone cucumber"
|
71
|
+
puts "\n (replace ios5 with ios4 if running iOS 4.x simulator.\nReplace iphone with ipad if running iPad simulator.).\n"
|
18
72
|
|
19
|
-
|
20
|
-
puts "Then try executing \n\nSTEP_PAUSE=2 OS=ios5 DEVICE=iphone cucumber"
|
21
|
-
puts "\n (replace ios5 with ios4 if running iOS 4.x simulator. Replace iphone with ipad if running iPad simulator.)."
|
73
|
+
end
|
data/calabash-cucumber.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
19
|
s.add_dependency( "cucumber" )
|
20
|
-
s.add_dependency( "rspec", ["2.7.0"] )
|
20
|
+
s.add_dependency( "rspec", ["~> 2.7.0"] )
|
21
21
|
s.add_dependency( "json" )
|
22
22
|
s.add_dependency( "net-http-persistent" )
|
23
23
|
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.
|
4
|
+
version: 0.9.1
|
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-
|
12
|
+
date: 2012-01-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|
16
|
-
requirement: &
|
16
|
+
requirement: &70214755446320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,21 +21,21 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70214755446320
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70214755445600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.7.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70214755445600
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: json
|
38
|
-
requirement: &
|
38
|
+
requirement: &70214755445100 !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: *
|
46
|
+
version_requirements: *70214755445100
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: net-http-persistent
|
49
|
-
requirement: &
|
49
|
+
requirement: &70214755444360 !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: *
|
57
|
+
version_requirements: *70214755444360
|
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:
|