spinach 0.1.5 → 0.1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ README.markdown
2
+ lib/**/*.rb
@@ -27,13 +27,9 @@ Start by adding spinach to your Gemfile:
27
27
  # along with gem 'minitest' or gem 'rspec'
28
28
  end
29
29
 
30
- Spinach works with your favorite test suite, you just have to tell it which
31
- one are you going to use in `features/support/env.rb`:
30
+ Spinach works out-of-the-box with your favorite test suite, but you can also
31
+ use it with RSpec as well if you put the following in `features/support/env.rb`:
32
32
 
33
- # If you want to use minitest:
34
- require 'minitest/spec'
35
-
36
- # If you want to use rspec:
37
33
  require 'rspec'
38
34
 
39
35
  Now create a `features` folder in your app or library and write your first
@@ -133,6 +129,34 @@ use private methods, mix in modules or whatever!
133
129
 
134
130
  Then run your feature again running `spinach` and watch it all turn green! :)
135
131
 
132
+ ## Hook architecture
133
+
134
+ Spinach provides several hooks to allow you performing certain steps before or
135
+ after any feature, scenario or step execution.
136
+
137
+ So, for example, you could:
138
+
139
+ Spinach.before_scenario do |data|
140
+ clear_database
141
+ end
142
+
143
+ Spinach.on_successful_step do |step_data, location|
144
+ count_steps(step_data)
145
+ end
146
+
147
+ Spinach.after_run do |status|
148
+ send_mail if status == 0
149
+ end
150
+
151
+ Full hook documentation is here:
152
+
153
+ [Spinach's hook documentation on rubydoc](http://rubydoc.info/github/codegram/spinach/master/Spinach/Hooks)
154
+
155
+
156
+ ## Wanna use it with Rails?
157
+
158
+ Use [spinach-rails](http://github.com/codegram/spinach-rails)
159
+
136
160
  ## Contributing
137
161
 
138
162
  You can easily contribute to Spinach. Its codebase is simple and
@@ -150,3 +174,7 @@ You can easily contribute to Spinach. Its codebase is simple and
150
174
  [gherkin]: http://github.com/cucumber/gherkin
151
175
  [cucumber]: http://github.com/cucumber/cucumber
152
176
  [documentation]: http://rubydoc.info/github/codegram/spinach/master/frames
177
+
178
+ ## License
179
+
180
+ MIT License. Copyright 2011 [Codegram Technologies](http://codegram.com)
@@ -1,2 +1,2 @@
1
- require_relative 'suites/minitest' if defined?(MiniTest::Unit)
1
+ require_relative 'suites/minitest'
2
2
  require_relative 'suites/rspec' if defined?(RSpec::Expectations)
@@ -1,3 +1,4 @@
1
+ require 'minitest/unit'
1
2
  MiniTest::Spec.new nil if defined?(MiniTest::Spec)
2
3
  Spinach.config[:failure_exceptions] << MiniTest::Assertion
3
4
  Spinach::FeatureSteps.send(:include, MiniTest::Assertions)
@@ -1,4 +1,4 @@
1
1
  module Spinach
2
2
  # Spinach version.
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.5.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spinach
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,7 +16,7 @@ date: 2011-10-21 00:00:00.000000000Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: gherkin
19
- requirement: &2172783760 !ruby/object:Gem::Requirement
19
+ requirement: &2160235340 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: '0'
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *2172783760
27
+ version_requirements: *2160235340
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: colorize
30
- requirement: &2172783340 !ruby/object:Gem::Requirement
30
+ requirement: &2160234900 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: '0'
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *2172783340
38
+ version_requirements: *2160234900
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: rake
41
- requirement: &2172782900 !ruby/object:Gem::Requirement
41
+ requirement: &2160234480 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: '0'
47
47
  type: :development
48
48
  prerelease: false
49
- version_requirements: *2172782900
49
+ version_requirements: *2160234480
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: mocha
52
- requirement: &2172782480 !ruby/object:Gem::Requirement
52
+ requirement: &2160233920 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :development
59
59
  prerelease: false
60
- version_requirements: *2172782480
60
+ version_requirements: *2160233920
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: sinatra
63
- requirement: &2172782060 !ruby/object:Gem::Requirement
63
+ requirement: &2160233300 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '>='
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: '0'
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *2172782060
71
+ version_requirements: *2160233300
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: capybara
74
- requirement: &2172781640 !ruby/object:Gem::Requirement
74
+ requirement: &2160232660 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ! '>='
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: '0'
80
80
  type: :development
81
81
  prerelease: false
82
- version_requirements: *2172781640
82
+ version_requirements: *2160232660
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: aruba
85
- requirement: &2172781220 !ruby/object:Gem::Requirement
85
+ requirement: &2160232020 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ! '>='
@@ -90,10 +90,10 @@ dependencies:
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
- version_requirements: *2172781220
93
+ version_requirements: *2160232020
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: pry
96
- requirement: &2172780800 !ruby/object:Gem::Requirement
96
+ requirement: &2160231400 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ! '>='
@@ -101,10 +101,10 @@ dependencies:
101
101
  version: '0'
102
102
  type: :development
103
103
  prerelease: false
104
- version_requirements: *2172780800
104
+ version_requirements: *2160231400
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: simplecov
107
- requirement: &2172780380 !ruby/object:Gem::Requirement
107
+ requirement: &2160230780 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - ! '>='
@@ -112,10 +112,10 @@ dependencies:
112
112
  version: '0'
113
113
  type: :development
114
114
  prerelease: false
115
- version_requirements: *2172780380
115
+ version_requirements: *2160230780
116
116
  - !ruby/object:Gem::Dependency
117
117
  name: rspec
118
- requirement: &2172779940 !ruby/object:Gem::Requirement
118
+ requirement: &2160230140 !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
121
121
  - - ! '>='
@@ -123,10 +123,10 @@ dependencies:
123
123
  version: '0'
124
124
  type: :development
125
125
  prerelease: false
126
- version_requirements: *2172779940
126
+ version_requirements: *2160230140
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: fakefs
129
- requirement: &2172779520 !ruby/object:Gem::Requirement
129
+ requirement: &2160229720 !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
132
132
  - - ! '>='
@@ -134,10 +134,10 @@ dependencies:
134
134
  version: '0'
135
135
  type: :development
136
136
  prerelease: false
137
- version_requirements: *2172779520
137
+ version_requirements: *2160229720
138
138
  - !ruby/object:Gem::Dependency
139
139
  name: minitest
140
- requirement: &2172779080 !ruby/object:Gem::Requirement
140
+ requirement: &2160229300 !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements:
143
143
  - - ! '>='
@@ -145,10 +145,10 @@ dependencies:
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
- version_requirements: *2172779080
148
+ version_requirements: *2160229300
149
149
  - !ruby/object:Gem::Dependency
150
150
  name: turn
151
- requirement: &2172778580 !ruby/object:Gem::Requirement
151
+ requirement: &2160228860 !ruby/object:Gem::Requirement
152
152
  none: false
153
153
  requirements:
154
154
  - - ! '>='
@@ -156,7 +156,7 @@ dependencies:
156
156
  version: '0'
157
157
  type: :development
158
158
  prerelease: false
159
- version_requirements: *2172778580
159
+ version_requirements: *2160228860
160
160
  description: Spinach is a BDD framework on top of gherkin
161
161
  email:
162
162
  - info@codegram.com
@@ -169,14 +169,14 @@ executables:
169
169
  extensions: []
170
170
  extra_rdoc_files: []
171
171
  files:
172
+ - .document
172
173
  - .gitignore
173
174
  - .rvmrc
174
175
  - .travis.yml
175
- - .yardopts
176
176
  - Gemfile
177
177
  - Guardfile
178
+ - README.markdown
178
179
  - Rakefile
179
- - Readme.md
180
180
  - bin/spinach
181
181
  - features/automatic_feature_generation.feature
182
182
  - features/exit_status.feature
@@ -258,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
258
258
  version: '0'
259
259
  segments:
260
260
  - 0
261
- hash: -818234758859156687
261
+ hash: 1747831223808097352
262
262
  required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  none: false
264
264
  requirements:
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  version: '0'
268
268
  segments:
269
269
  - 0
270
- hash: -818234758859156687
270
+ hash: 1747831223808097352
271
271
  requirements: []
272
272
  rubyforge_project:
273
273
  rubygems_version: 1.8.6
data/.yardopts DELETED
@@ -1,6 +0,0 @@
1
- --title "Spinach"
2
- --no-private
3
- -m markdown
4
- -r Readme.md
5
- lib/**/*.rb
6
- Readme.md