cape 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  # Version history for the _Cape_ project
2
2
 
3
+ ## <a name="v1.0.3"></a>v1.0.3, Tue 11/29/2011
4
+
5
+ * Run Cucumber features from `gem test cape`
6
+
3
7
  ## <a name="v1.0.2"></a>v1.0.2, Thu 12/29/2011
4
8
 
5
9
  * Support Rake task arguments that contain whitespace
data/Rakefile CHANGED
@@ -1,4 +1,7 @@
1
- require 'bundler/gem_tasks'
1
+ begin
2
+ require 'bundler/gem_tasks'
3
+ rescue LoadError
4
+ end
2
5
  require 'cucumber'
3
6
  require 'cucumber/rake/task'
4
7
  require 'rspec/core/rake_task'
@@ -12,7 +15,9 @@ else
12
15
  end
13
16
  end
14
17
 
15
- Cucumber::Rake::Task.new :features, 'Test features'
18
+ Cucumber::Rake::Task.new :features, 'Test features' do |t|
19
+ t.bundler = false
20
+ end
16
21
 
17
22
  def define_spec_task(name, options={})
18
23
  RSpec::Core::RakeTask.new name do |t|
@@ -37,5 +42,13 @@ task '' => [:spec, :features]
37
42
  task :default => [:spec, :features]
38
43
 
39
44
  # Support the 'gem test' command.
40
- desc ''
41
- define_spec_task :test, :debug => false
45
+ namespace :test do
46
+ desc ''
47
+ define_spec_task :specs, :debug => false
48
+
49
+ Cucumber::Rake::Task.new :features, '' do |t|
50
+ t.bundler = false
51
+ t.cucumber_opts = '--backtrace'
52
+ end
53
+ end
54
+ task :test => %w(test:specs test:features)
@@ -6,10 +6,8 @@ Feature: The #each_rake_task DSL method with an argument of a defined namespace
6
6
 
7
7
  Scenario: enumerate only the Rake tasks in the matching namespace
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  Cape do
14
12
  each_rake_task :my_namespace do |t|
15
13
  $stdout.puts '', "Name: #{t[:name].inspect}"
@@ -6,10 +6,8 @@ Feature: The #each_rake_task DSL method with an argument of a defined task
6
6
 
7
7
  Scenario: enumerate only the matching Rake task
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  Cape do
14
12
  each_rake_task 'with_period' do |t|
15
13
  $stdout.puts '', "Name: #{t[:name].inspect}"
@@ -6,10 +6,8 @@ Feature: The #each_rake_task DSL method with an undefined argument
6
6
 
7
7
  Scenario: do not enumerate any Rake tasks
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  Cape do
14
12
  each_rake_task :this_does_not_exist do |t|
15
13
  $stdout.puts '', "Name: #{t[:name].inspect}"
@@ -6,10 +6,8 @@ Feature: The #each_rake_task DSL method without arguments
6
6
 
7
7
  Scenario: enumerate all non-hidden Rake tasks
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  Cape do
14
12
  each_rake_task do |t|
15
13
  $stdout.puts '', "Name: #{t[:name].inspect}"
@@ -6,10 +6,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, with
6
6
 
7
7
  Scenario: mirror only the Rake tasks in the matching namespace
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  namespace :ns do
14
12
  Cape do |cape|
15
13
  cape.mirror_rake_tasks 'my_namespace'
@@ -29,10 +27,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, with
29
27
 
30
28
  Scenario: do not mirror Rake task 'with_period'
31
29
  Given a full-featured Rakefile
32
- And a file named "Capfile" with:
30
+ And a Capfile with:
33
31
  """
34
- require 'cape'
35
-
36
32
  namespace :ns do
37
33
  Cape do |cape|
38
34
  cape.mirror_rake_tasks :my_namespace
@@ -48,10 +44,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, with
48
44
 
49
45
  Scenario: mirror Rake task 'my_namespace:in_a_namespace' with its description
50
46
  Given a full-featured Rakefile
51
- And a file named "Capfile" with:
47
+ And a Capfile with:
52
48
  """
53
- require 'cape'
54
-
55
49
  namespace :ns do
56
50
  Cape do |cape|
57
51
  cape.mirror_rake_tasks :my_namespace
@@ -71,10 +65,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, with
71
65
 
72
66
  Scenario: mirror Rake task 'my_namespace:my_nested_namespace:in_a_nested_namespace' with its description
73
67
  Given a full-featured Rakefile
74
- And a file named "Capfile" with:
68
+ And a Capfile with:
75
69
  """
76
- require 'cape'
77
-
78
70
  namespace :ns do
79
71
  Cape do |cape|
80
72
  cape.mirror_rake_tasks :my_namespace
@@ -6,10 +6,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, with
6
6
 
7
7
  Scenario: mirror only the matching Rake task
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  namespace :ns do
14
12
  Cape do |cape|
15
13
  cape.mirror_rake_tasks 'with_period'
@@ -25,10 +23,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, with
25
23
 
26
24
  Scenario: mirror Rake task 'with_period' with its description
27
25
  Given a full-featured Rakefile
28
- And a file named "Capfile" with:
26
+ And a Capfile with:
29
27
  """
30
- require 'cape'
31
-
32
28
  namespace :ns do
33
29
  Cape do |cape|
34
30
  cape.mirror_rake_tasks :with_period
@@ -48,10 +44,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, with
48
44
 
49
45
  Scenario: do not mirror Rake task 'without_period'
50
46
  Given a full-featured Rakefile
51
- And a file named "Capfile" with:
47
+ And a Capfile with:
52
48
  """
53
- require 'cape'
54
-
55
49
  namespace :ns do
56
50
  Cape do |cape|
57
51
  cape.mirror_rake_tasks :with_period
@@ -6,10 +6,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, with
6
6
 
7
7
  Scenario: do not mirror any Rake tasks
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  namespace :ns do
14
12
  Cape do |cape|
15
13
  cape.mirror_rake_tasks 'this_does_not_exist'
@@ -21,10 +19,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, with
21
19
 
22
20
  Scenario: do not mirror Rake task 'with_period'
23
21
  Given a full-featured Rakefile
24
- And a file named "Capfile" with:
22
+ And a Capfile with:
25
23
  """
26
- require 'cape'
27
-
28
24
  namespace :ns do
29
25
  Cape do |cape|
30
26
  cape.mirror_rake_tasks :this_does_not_exist
@@ -6,10 +6,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
6
6
 
7
7
  Scenario: mirror all non-hidden Rake tasks
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  namespace :ns do
14
12
  Cape do |cape|
15
13
  cape.mirror_rake_tasks
@@ -53,10 +51,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
53
51
 
54
52
  Scenario: mirror Rake task 'with_period' with its description
55
53
  Given a full-featured Rakefile
56
- And a file named "Capfile" with:
54
+ And a Capfile with:
57
55
  """
58
- require 'cape'
59
-
60
56
  namespace :ns do
61
57
  Cape do |cape|
62
58
  cape.mirror_rake_tasks
@@ -76,11 +72,10 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
76
72
 
77
73
  Scenario: mirror Rake task 'with_period' with its implementation
78
74
  Given a full-featured Rakefile
79
- And a file named "Capfile" with:
75
+ And a Capfile with:
80
76
  """
81
- require 'cape'
82
-
83
77
  set :current_path, '/path/to/current/deployed/application'
78
+
84
79
  namespace :ns do
85
80
  Cape do |cape|
86
81
  cape.mirror_rake_tasks
@@ -95,10 +90,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
95
90
 
96
91
  Scenario: mirror Rake task 'without_period' with its description
97
92
  Given a full-featured Rakefile
98
- And a file named "Capfile" with:
93
+ And a Capfile with:
99
94
  """
100
- require 'cape'
101
-
102
95
  namespace :ns do
103
96
  Cape do |cape|
104
97
  cape.mirror_rake_tasks
@@ -118,10 +111,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
118
111
 
119
112
  Scenario: mirror Rake task 'long' with its description
120
113
  Given a full-featured Rakefile
121
- And a file named "Capfile" with:
114
+ And a Capfile with:
122
115
  """
123
- require 'cape'
124
-
125
116
  namespace :ns do
126
117
  Cape do |cape|
127
118
  cape.mirror_rake_tasks
@@ -143,10 +134,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
143
134
 
144
135
  Scenario: mirror Rake task 'with_one_arg' with its description
145
136
  Given a full-featured Rakefile
146
- And a file named "Capfile" with:
137
+ And a Capfile with:
147
138
  """
148
- require 'cape'
149
-
150
139
  namespace :ns do
151
140
  Cape do |cape|
152
141
  cape.mirror_rake_tasks
@@ -168,10 +157,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
168
157
 
169
158
  Scenario: mirror Rake task 'my_namespace:in_a_namespace' with its description
170
159
  Given a full-featured Rakefile
171
- And a file named "Capfile" with:
160
+ And a Capfile with:
172
161
  """
173
- require 'cape'
174
-
175
162
  namespace :ns do
176
163
  Cape do |cape|
177
164
  cape.mirror_rake_tasks
@@ -191,10 +178,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
191
178
 
192
179
  Scenario: mirror Rake task 'my_namespace:my_nested_namespace:in_a_nested_namespace' with its description
193
180
  Given a full-featured Rakefile
194
- And a file named "Capfile" with:
181
+ And a Capfile with:
195
182
  """
196
- require 'cape'
197
-
198
183
  namespace :ns do
199
184
  Cape do |cape|
200
185
  cape.mirror_rake_tasks
@@ -214,10 +199,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
214
199
 
215
200
  Scenario: mirror Rake task 'with_two_args' with its description
216
201
  Given a full-featured Rakefile
217
- And a file named "Capfile" with:
202
+ And a Capfile with:
218
203
  """
219
- require 'cape'
220
-
221
204
  namespace :ns do
222
205
  Cape do |cape|
223
206
  cape.mirror_rake_tasks
@@ -239,10 +222,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
239
222
 
240
223
  Scenario: mirror Rake task 'with_three_args' with its description
241
224
  Given a full-featured Rakefile
242
- And a file named "Capfile" with:
225
+ And a Capfile with:
243
226
  """
244
- require 'cape'
245
-
246
227
  namespace :ns do
247
228
  Cape do |cape|
248
229
  cape.mirror_rake_tasks
@@ -264,10 +245,8 @@ Feature: The #mirror_rake_tasks DSL method, inside a Capistrano namespace, witho
264
245
 
265
246
  Scenario: do not mirror Rake task 'hidden_task'
266
247
  Given a full-featured Rakefile
267
- And a file named "Capfile" with:
248
+ And a Capfile with:
268
249
  """
269
- require 'cape'
270
-
271
250
  namespace :ns do
272
251
  Cape do |cape|
273
252
  cape.mirror_rake_tasks
@@ -6,10 +6,8 @@ Feature: The #mirror_rake_tasks DSL method with an argument of a defined namespa
6
6
 
7
7
  Scenario: mirror only the Rake tasks in the matching namespace
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  Cape do
14
12
  mirror_rake_tasks 'my_namespace'
15
13
  end
@@ -27,10 +25,8 @@ Feature: The #mirror_rake_tasks DSL method with an argument of a defined namespa
27
25
 
28
26
  Scenario: do not mirror Rake task 'with_period'
29
27
  Given a full-featured Rakefile
30
- And a file named "Capfile" with:
28
+ And a Capfile with:
31
29
  """
32
- require 'cape'
33
-
34
30
  Cape do
35
31
  mirror_rake_tasks :my_namespace
36
32
  end
@@ -44,10 +40,8 @@ Feature: The #mirror_rake_tasks DSL method with an argument of a defined namespa
44
40
 
45
41
  Scenario: mirror Rake task 'my_namespace:in_a_namespace' with its description
46
42
  Given a full-featured Rakefile
47
- And a file named "Capfile" with:
43
+ And a Capfile with:
48
44
  """
49
- require 'cape'
50
-
51
45
  Cape do
52
46
  mirror_rake_tasks :my_namespace
53
47
  end
@@ -65,10 +59,8 @@ Feature: The #mirror_rake_tasks DSL method with an argument of a defined namespa
65
59
 
66
60
  Scenario: mirror Rake task 'my_namespace:my_nested_namespace:in_a_nested_namespace' with its description
67
61
  Given a full-featured Rakefile
68
- And a file named "Capfile" with:
62
+ And a Capfile with:
69
63
  """
70
- require 'cape'
71
-
72
64
  Cape do
73
65
  mirror_rake_tasks :my_namespace
74
66
  end
@@ -6,10 +6,8 @@ Feature: The #mirror_rake_tasks DSL method with an argument of a defined task
6
6
 
7
7
  Scenario: mirror only the matching Rake task
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  Cape do
14
12
  mirror_rake_tasks 'with_period'
15
13
  end
@@ -23,10 +21,8 @@ Feature: The #mirror_rake_tasks DSL method with an argument of a defined task
23
21
 
24
22
  Scenario: mirror Rake task 'with_period' with its description
25
23
  Given a full-featured Rakefile
26
- And a file named "Capfile" with:
24
+ And a Capfile with:
27
25
  """
28
- require 'cape'
29
-
30
26
  Cape do
31
27
  mirror_rake_tasks :with_period
32
28
  end
@@ -44,10 +40,8 @@ Feature: The #mirror_rake_tasks DSL method with an argument of a defined task
44
40
 
45
41
  Scenario: do not mirror Rake task 'without_period'
46
42
  Given a full-featured Rakefile
47
- And a file named "Capfile" with:
43
+ And a Capfile with:
48
44
  """
49
- require 'cape'
50
-
51
45
  Cape do
52
46
  mirror_rake_tasks :with_period
53
47
  end
@@ -6,10 +6,8 @@ Feature: The #mirror_rake_tasks DSL method with an undefined argument
6
6
 
7
7
  Scenario: do not mirror any Rake tasks
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  Cape do
14
12
  mirror_rake_tasks 'this_does_not_exist'
15
13
  end
@@ -19,10 +17,8 @@ Feature: The #mirror_rake_tasks DSL method with an undefined argument
19
17
 
20
18
  Scenario: do not mirror Rake task 'with_period'
21
19
  Given a full-featured Rakefile
22
- And a file named "Capfile" with:
20
+ And a Capfile with:
23
21
  """
24
- require 'cape'
25
-
26
22
  Cape do
27
23
  mirror_rake_tasks :this_does_not_exist
28
24
  end
@@ -6,10 +6,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
6
6
 
7
7
  Scenario: mirror all non-hidden Rake tasks
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  Cape do
14
12
  mirror_rake_tasks
15
13
  end
@@ -51,10 +49,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
51
49
 
52
50
  Scenario: mirror Rake task 'with_period' with its description
53
51
  Given a full-featured Rakefile
54
- And a file named "Capfile" with:
52
+ And a Capfile with:
55
53
  """
56
- require 'cape'
57
-
58
54
  Cape do
59
55
  mirror_rake_tasks
60
56
  end
@@ -72,11 +68,10 @@ Feature: The #mirror_rake_tasks DSL method without arguments
72
68
 
73
69
  Scenario: mirror Rake task 'with_period' with its implementation
74
70
  Given a full-featured Rakefile
75
- And a file named "Capfile" with:
71
+ And a Capfile with:
76
72
  """
77
- require 'cape'
78
-
79
73
  set :current_path, '/path/to/current/deployed/application'
74
+
80
75
  Cape do
81
76
  mirror_rake_tasks
82
77
  end
@@ -89,10 +84,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
89
84
 
90
85
  Scenario: mirror Rake task 'without_period' with its description
91
86
  Given a full-featured Rakefile
92
- And a file named "Capfile" with:
87
+ And a Capfile with:
93
88
  """
94
- require 'cape'
95
-
96
89
  Cape do
97
90
  mirror_rake_tasks
98
91
  end
@@ -110,10 +103,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
110
103
 
111
104
  Scenario: mirror Rake task 'long' with its description
112
105
  Given a full-featured Rakefile
113
- And a file named "Capfile" with:
106
+ And a Capfile with:
114
107
  """
115
- require 'cape'
116
-
117
108
  Cape do
118
109
  mirror_rake_tasks
119
110
  end
@@ -133,10 +124,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
133
124
 
134
125
  Scenario: mirror Rake task 'with_one_arg' with its description
135
126
  Given a full-featured Rakefile
136
- And a file named "Capfile" with:
127
+ And a Capfile with:
137
128
  """
138
- require 'cape'
139
-
140
129
  Cape do
141
130
  mirror_rake_tasks
142
131
  end
@@ -156,10 +145,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
156
145
 
157
146
  Scenario: mirror Rake task 'my_namespace:in_a_namespace' with its description
158
147
  Given a full-featured Rakefile
159
- And a file named "Capfile" with:
148
+ And a Capfile with:
160
149
  """
161
- require 'cape'
162
-
163
150
  Cape do
164
151
  mirror_rake_tasks
165
152
  end
@@ -177,10 +164,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
177
164
 
178
165
  Scenario: mirror Rake task 'my_namespace:my_nested_namespace:in_a_nested_namespace' with its description
179
166
  Given a full-featured Rakefile
180
- And a file named "Capfile" with:
167
+ And a Capfile with:
181
168
  """
182
- require 'cape'
183
-
184
169
  Cape do
185
170
  mirror_rake_tasks
186
171
  end
@@ -198,11 +183,10 @@ Feature: The #mirror_rake_tasks DSL method without arguments
198
183
 
199
184
  Scenario: mirror Rake task 'my_namespace:my_nested_namespace:in_a_nested_namespace' with its implementation
200
185
  Given a full-featured Rakefile
201
- And a file named "Capfile" with:
186
+ And a Capfile with:
202
187
  """
203
- require 'cape'
204
-
205
188
  set :current_path, '/path/to/current/deployed/application'
189
+
206
190
  Cape do
207
191
  mirror_rake_tasks
208
192
  end
@@ -215,10 +199,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
215
199
 
216
200
  Scenario: mirror Rake task 'with_two_args' with its description
217
201
  Given a full-featured Rakefile
218
- And a file named "Capfile" with:
202
+ And a Capfile with:
219
203
  """
220
- require 'cape'
221
-
222
204
  Cape do
223
205
  mirror_rake_tasks
224
206
  end
@@ -238,10 +220,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
238
220
 
239
221
  Scenario: mirror Rake task 'with_three_args' with its description
240
222
  Given a full-featured Rakefile
241
- And a file named "Capfile" with:
223
+ And a Capfile with:
242
224
  """
243
- require 'cape'
244
-
245
225
  Cape do
246
226
  mirror_rake_tasks
247
227
  end
@@ -261,10 +241,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
261
241
 
262
242
  Scenario: mirror Rake task 'with_three_args' with its implementation enforcing arguments
263
243
  Given a full-featured Rakefile
264
- And a file named "Capfile" with:
244
+ And a Capfile with:
265
245
  """
266
- require 'cape'
267
-
268
246
  set :current_path, '/path/to/current/deployed/application'
269
247
  Cape do
270
248
  mirror_rake_tasks
@@ -275,11 +253,10 @@ Feature: The #mirror_rake_tasks DSL method without arguments
275
253
 
276
254
  Scenario: mirror Rake task 'with_three_args' with its implementation
277
255
  Given a full-featured Rakefile
278
- And a file named "Capfile" with:
256
+ And a Capfile with:
279
257
  """
280
- require 'cape'
281
-
282
258
  set :current_path, '/path/to/current/deployed/application'
259
+
283
260
  Cape do
284
261
  mirror_rake_tasks
285
262
  end
@@ -294,10 +271,8 @@ Feature: The #mirror_rake_tasks DSL method without arguments
294
271
 
295
272
  Scenario: do not mirror Rake task 'hidden_task'
296
273
  Given a full-featured Rakefile
297
- And a file named "Capfile" with:
274
+ And a Capfile with:
298
275
  """
299
- require 'cape'
300
-
301
276
  Cape do
302
277
  mirror_rake_tasks
303
278
  end
@@ -6,10 +6,8 @@ Feature: The #local_rake_executable and #remote_rake_executable DSL attributes
6
6
 
7
7
  Scenario: use a different Rake executable to enumerate Rake tasks
8
8
  Given a full-featured Rakefile
9
- And a file named "Capfile" with:
9
+ And a Capfile with:
10
10
  """
11
- require 'cape'
12
-
13
11
  Cape do
14
12
  self.local_rake_executable = 'echo "rake this-comes-from-overridden-rake # This comes from overridden Rake" #'
15
13
  $stdout.puts "We changed the local Rake executable to #{self.local_rake_executable.inspect}."
@@ -43,10 +41,8 @@ Feature: The #local_rake_executable and #remote_rake_executable DSL attributes
43
41
 
44
42
  Scenario: use a different Rake executable to execute Rake tasks
45
43
  Given a full-featured Rakefile
46
- And a file named "Capfile" with:
44
+ And a Capfile with:
47
45
  """
48
- require 'cape'
49
-
50
46
  set :current_path, '/path/to/current/deployed/application'
51
47
  Cape do
52
48
  self.remote_rake_executable = 'echo "This comes from overridden Rake" #'
@@ -1,3 +1,12 @@
1
+ Given 'a Capfile with:' do |content|
2
+ preamble = <<-end_preamble
3
+ $:.unshift #{File.expand_path('../../lib', __FILE__).inspect}
4
+ require 'cape'
5
+
6
+ end_preamble
7
+ step('a file named "Capfile" with:', (preamble + content))
8
+ end
9
+
1
10
  Given 'a full-featured Rakefile' do
2
11
  step 'a file named "Rakefile" with:', <<-end_step
3
12
  desc 'Ends with period.'
@@ -1,6 +1,6 @@
1
1
  module Cape
2
2
 
3
3
  # The version of Cape.
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
 
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cape
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nils Jonsson