coulda 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY +5 -0
- data/VERSION +1 -1
- data/coulda.gemspec +2 -1
- data/lib/coulda.rb +1 -0
- data/lib/coulda/feature.rb +1 -0
- data/lib/coulda/tasks/print_features.rake +7 -9
- data/lib/coulda/world.rb +11 -0
- metadata +2 -1
data/HISTORY
CHANGED
@@ -47,3 +47,8 @@ Cleanup
|
|
47
47
|
-----
|
48
48
|
- Put missing rake task in the gemspec
|
49
49
|
- Added examples that were previously in the git repo but not in the gemspec
|
50
|
+
|
51
|
+
0.4.4
|
52
|
+
-----
|
53
|
+
- Reversed decision on naming "feature" files as _feature.rb. Should just be _test.rb like any other test
|
54
|
+
- Features now register with a World when they are created which is used in the rake task instead of ObjectSpace.each_object
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.4
|
data/coulda.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{coulda}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Evan David Light"]
|
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
"lib/coulda.rb",
|
35
35
|
"lib/coulda/feature.rb",
|
36
36
|
"lib/coulda/scenario.rb",
|
37
|
+
"lib/coulda/world.rb",
|
37
38
|
"lib/coulda/tasks.rb",
|
38
39
|
"lib/coulda/tasks/print_features.rake",
|
39
40
|
"lib/coulda/vendor/constantize.rb",
|
data/lib/coulda.rb
CHANGED
data/lib/coulda/feature.rb
CHANGED
@@ -9,19 +9,17 @@ namespace :coulda do
|
|
9
9
|
# bug in test unit. Set to true to stop from running.
|
10
10
|
Test::Unit.run = true
|
11
11
|
|
12
|
-
test_files = Dir.glob(File.join('test', '**', '*
|
12
|
+
test_files = Dir.glob(File.join('test', '**', '*_test.rb'))
|
13
13
|
test_files.each do |file|
|
14
14
|
load file
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
puts "
|
21
|
-
puts "
|
22
|
-
|
23
|
-
puts " I want to #{obj.i_want_to}" if obj.i_want_to
|
24
|
-
obj.scenarios.each do |scenario|
|
17
|
+
Coulda::World.features.each do |feature|
|
18
|
+
puts "Feature: #{feature.name}"
|
19
|
+
puts " In order to #{feature.in_order_to}" if feature.in_order_to
|
20
|
+
puts " As a #{feature.as_a}" if feature.as_a
|
21
|
+
puts " I want to #{feature.i_want_to}" if feature.i_want_to
|
22
|
+
feature.scenarios.each do |scenario|
|
25
23
|
puts
|
26
24
|
puts " Scenario: #{scenario.name} #{scenario.pending? ? '(pending)' : ''}"
|
27
25
|
scenario.statements.each do |stmt|
|
data/lib/coulda/world.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coulda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan David Light
|
@@ -49,6 +49,7 @@ files:
|
|
49
49
|
- lib/coulda.rb
|
50
50
|
- lib/coulda/feature.rb
|
51
51
|
- lib/coulda/scenario.rb
|
52
|
+
- lib/coulda/world.rb
|
52
53
|
- lib/coulda/tasks.rb
|
53
54
|
- lib/coulda/tasks/print_features.rake
|
54
55
|
- lib/coulda/vendor/constantize.rb
|