coulda 0.5.5 → 0.6.0

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.
Binary file
@@ -5,18 +5,18 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{coulda}
8
- s.version = "0.5.5"
8
+ s.version = "0.6.0"
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"]
12
- s.date = %q{2010-09-10}
12
+ s.date = %q{2010-10-29}
13
13
  s.description = %q{Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse}
14
14
  s.email = %q{evan@tiggerpalace.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README.rdoc"
18
18
  ]
19
- s.files = Dir.glob('lib/**/*.rb') + Dir.glob('*')
19
+ s.files = Dir.glob('lib/**/*.rb') + Dir.glob('*') + Dir.glob('lib/tasks/**/*.rake')
20
20
  s.homepage = %q{http://coulda.tiggerpalace.com}
21
21
  s.rdoc_options = ["--charset=UTF-8"]
22
22
  s.require_paths = ["lib"]
@@ -1,3 +1,3 @@
1
- Dir[File.join(File.dirname(__FILE__), 'tasks', '*.rake')].each do |f|
1
+ Dir[File.join(File.dirname(__FILE__), '..', 'tasks', '*.rake')].each do |f|
2
2
  load f
3
3
  end
@@ -0,0 +1,38 @@
1
+ namespace :coulda do
2
+ desc "Print all features as plain text"
3
+ task :print_features do
4
+
5
+ $LOAD_PATH.unshift("test")
6
+
7
+ require 'test/unit'
8
+
9
+ # bug in test unit. Set to true to stop from running.
10
+ Test::Unit.run = true
11
+
12
+ require 'coulda'
13
+
14
+ test_files = Dir.glob(File.join('test', '**', '*_test.rb'))
15
+ test_files.each do |file|
16
+ load file
17
+ end
18
+
19
+ Coulda::World.features.each do |feature, name|
20
+ puts "Feature: #{name}"
21
+ puts " In order to #{feature.in_order_to}" if feature.in_order_to
22
+ puts " As a #{feature.as_a}" if feature.as_a
23
+ puts " I want to #{feature.i_want_to}" if feature.i_want_to
24
+ feature.scenarios.each do |scenario|
25
+ puts
26
+ print " "
27
+ print "(**PENDING**) " if scenario.pending?
28
+ puts "Scenario: #{scenario.name}"
29
+ scenario.statements.each do |stmt|
30
+ print " "
31
+ print "(**PENDING**) " unless stmt[:block]
32
+ puts "#{stmt[:type].to_s} #{stmt[:text]}"
33
+ end
34
+ end
35
+ puts
36
+ end
37
+ end
38
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coulda
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 5
9
- - 5
10
- version: 0.5.5
8
+ - 6
9
+ - 0
10
+ version: 0.6.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Evan David Light
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-10 00:00:00 -04:00
18
+ date: 2010-10-29 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -46,6 +46,7 @@ files:
46
46
  - Rakefile
47
47
  - README.rdoc
48
48
  - VERSION
49
+ - lib/tasks/print_features.rake
49
50
  - test/feature_test.rb
50
51
  - test/scenario_test.rb
51
52
  - test/test_helper.rb