rspec-steps 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rspec-steps/stepwise.rb +23 -1
- data/spec_help/spec_helper.rb +0 -1
- metadata +6 -50
data/lib/rspec-steps/stepwise.rb
CHANGED
@@ -36,8 +36,18 @@ module RSpecStepwise
|
|
36
36
|
super
|
37
37
|
end
|
38
38
|
|
39
|
+
|
39
40
|
def eval_before_alls(example_group_instance)
|
40
41
|
super
|
42
|
+
stepped_before_hooks(example_group_instance)
|
43
|
+
end
|
44
|
+
|
45
|
+
def run_before_all_hooks(example_group_instance)
|
46
|
+
super
|
47
|
+
stepped_before_hooks(example_group_instance)
|
48
|
+
end
|
49
|
+
|
50
|
+
def stepped_before_hooks(example_group_instance)
|
41
51
|
example_group_instance.example = whole_list_example
|
42
52
|
world.run_hook_filtered(:before, :each, self, example_group_instance, whole_list_example)
|
43
53
|
ancestors.reverse.each { |ancestor| ancestor.run_hook(:before, :each, example_group_instance) }
|
@@ -46,18 +56,30 @@ module RSpecStepwise
|
|
46
56
|
|
47
57
|
def eval_around_eachs(example)
|
48
58
|
end
|
59
|
+
alias run_around_each_hooks eval_around_eachs
|
49
60
|
|
50
61
|
def eval_before_eachs(example)
|
51
62
|
end
|
63
|
+
alias run_before_each_hooks eval_before_eachs
|
52
64
|
|
53
65
|
def eval_after_eachs(example)
|
54
66
|
end
|
67
|
+
alias run_after_each_hooks eval_after_eachs
|
55
68
|
|
56
69
|
def eval_after_alls(example_group_instance)
|
70
|
+
stepped_after_hooks(example_group_instance)
|
71
|
+
super
|
72
|
+
end
|
73
|
+
|
74
|
+
def run_after_all_hooks(example_group_instance)
|
75
|
+
stepped_after_hooks(example_group_instance)
|
76
|
+
super
|
77
|
+
end
|
78
|
+
|
79
|
+
def stepped_after_hooks(example_group_instance)
|
57
80
|
example_group_instance.example = whole_list_example
|
58
81
|
ancestors.each { |ancestor| ancestor.run_hook(:after, :each, example_group_instance) }
|
59
82
|
world.run_hook_filtered(:after, :each, self, example_group_instance, whole_list_example)
|
60
|
-
super
|
61
83
|
end
|
62
84
|
|
63
85
|
def whole_list_example
|
data/spec_help/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,23 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-steps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 6
|
10
|
-
version: 0.0.6
|
5
|
+
version: 0.0.7
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
|
-
- Evan Dorn
|
14
8
|
- Judson Lester
|
9
|
+
- Evan Dorn
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
13
|
|
19
|
-
date: 2011-
|
20
|
-
default_executable:
|
14
|
+
date: 2011-10-17 00:00:00 Z
|
21
15
|
dependencies:
|
22
16
|
- !ruby/object:Gem::Dependency
|
23
17
|
name: rake-rubygems
|
@@ -27,11 +21,6 @@ dependencies:
|
|
27
21
|
requirements:
|
28
22
|
- - ">="
|
29
23
|
- !ruby/object:Gem::Version
|
30
|
-
hash: 23
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
- 2
|
34
|
-
- 0
|
35
24
|
version: 0.2.0
|
36
25
|
type: :development
|
37
26
|
version_requirements: *id001
|
@@ -43,11 +32,6 @@ dependencies:
|
|
43
32
|
requirements:
|
44
33
|
- - ~>
|
45
34
|
- !ruby/object:Gem::Version
|
46
|
-
hash: 27
|
47
|
-
segments:
|
48
|
-
- 0
|
49
|
-
- 1
|
50
|
-
- 0
|
51
35
|
version: 0.1.0
|
52
36
|
type: :development
|
53
37
|
version_requirements: *id002
|
@@ -59,11 +43,6 @@ dependencies:
|
|
59
43
|
requirements:
|
60
44
|
- - ~>
|
61
45
|
- !ruby/object:Gem::Version
|
62
|
-
hash: 7
|
63
|
-
segments:
|
64
|
-
- 1
|
65
|
-
- 4
|
66
|
-
- 0
|
67
46
|
version: 1.4.0
|
68
47
|
type: :development
|
69
48
|
version_requirements: *id003
|
@@ -75,10 +54,6 @@ dependencies:
|
|
75
54
|
requirements:
|
76
55
|
- - ">="
|
77
56
|
- !ruby/object:Gem::Version
|
78
|
-
hash: 3
|
79
|
-
segments:
|
80
|
-
- 2
|
81
|
-
- 0
|
82
57
|
version: "2.0"
|
83
58
|
type: :development
|
84
59
|
version_requirements: *id004
|
@@ -90,11 +65,6 @@ dependencies:
|
|
90
65
|
requirements:
|
91
66
|
- - ~>
|
92
67
|
- !ruby/object:Gem::Version
|
93
|
-
hash: 23
|
94
|
-
segments:
|
95
|
-
- 1
|
96
|
-
- 0
|
97
|
-
- 0
|
98
68
|
version: 1.0.0
|
99
69
|
type: :development
|
100
70
|
version_requirements: *id005
|
@@ -106,9 +76,6 @@ dependencies:
|
|
106
76
|
requirements:
|
107
77
|
- - ">="
|
108
78
|
- !ruby/object:Gem::Version
|
109
|
-
hash: 3
|
110
|
-
segments:
|
111
|
-
- 0
|
112
79
|
version: "0"
|
113
80
|
type: :development
|
114
81
|
version_requirements: *id006
|
@@ -120,17 +87,13 @@ dependencies:
|
|
120
87
|
requirements:
|
121
88
|
- - ">="
|
122
89
|
- !ruby/object:Gem::Version
|
123
|
-
hash: 15
|
124
|
-
segments:
|
125
|
-
- 2
|
126
|
-
- 6
|
127
90
|
version: "2.6"
|
128
91
|
type: :runtime
|
129
92
|
version_requirements: *id007
|
130
93
|
description: " I don't like Cucumber. I don't need plain text stories. My clients either\n read code or don't read any test documents, so Cucumber is mostly useless.\n But often, especially in full integration tests, it would be nice to have\n steps in a test.\n"
|
131
94
|
email:
|
132
|
-
- evan@lrdesign.com
|
133
95
|
- judson@lrdesign.com
|
96
|
+
- evan@lrdesign.com
|
134
97
|
executables: []
|
135
98
|
|
136
99
|
extensions: []
|
@@ -383,7 +346,6 @@ files:
|
|
383
346
|
- doc/coverage/print.css
|
384
347
|
- doc/coverage/rcov-ruby-1_8-gems-rspec-expectations-2_5_0-lib-rspec-matchers-satisfy_rb.html
|
385
348
|
- doc/coverage/lib-rspec-steps-duckpunch-object-extensions_rb.html
|
386
|
-
has_rdoc: true
|
387
349
|
homepage: https://github.com/LRDesign/rspec-steps
|
388
350
|
licenses:
|
389
351
|
- MIT
|
@@ -393,7 +355,7 @@ rdoc_options:
|
|
393
355
|
- --main
|
394
356
|
- doc/README
|
395
357
|
- --title
|
396
|
-
- rspec-steps-0.0.
|
358
|
+
- rspec-steps-0.0.7 RDoc
|
397
359
|
require_paths:
|
398
360
|
- lib/
|
399
361
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -401,23 +363,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
401
363
|
requirements:
|
402
364
|
- - ">="
|
403
365
|
- !ruby/object:Gem::Version
|
404
|
-
hash: 3
|
405
|
-
segments:
|
406
|
-
- 0
|
407
366
|
version: "0"
|
408
367
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
409
368
|
none: false
|
410
369
|
requirements:
|
411
370
|
- - ">="
|
412
371
|
- !ruby/object:Gem::Version
|
413
|
-
hash: 3
|
414
|
-
segments:
|
415
|
-
- 0
|
416
372
|
version: "0"
|
417
373
|
requirements: []
|
418
374
|
|
419
375
|
rubyforge_project: rspec-steps
|
420
|
-
rubygems_version: 1.
|
376
|
+
rubygems_version: 1.8.11
|
421
377
|
signing_key:
|
422
378
|
specification_version: 3
|
423
379
|
summary: I want steps in RSpec
|