marcinbunsch-bolt 0.2.5 → 0.2.6

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/.bolt CHANGED
@@ -1 +1 @@
1
- verbose: true
1
+ verbose: true
data/bin/bolt CHANGED
@@ -4,7 +4,7 @@ require 'bolt'
4
4
 
5
5
  # Rails support
6
6
  # TODO test/test_helper is not good for checking for rails, try something else
7
- if File.exists?('test/test_helper.rb')
7
+ if File.exists?('config/environment.rb')
8
8
  require 'bolt/adapters/rails'
9
9
  end
10
10
 
@@ -7,7 +7,7 @@ end
7
7
 
8
8
  puts '** Rails found, loading environment'
9
9
  ENV['RAILS_ENV'] = 'test'
10
- require 'test/test_helper.rb'
10
+ require 'config/environment.rb'
11
11
 
12
12
  # This is a hack for Rails Test::Unit to prevent raising errors when a test file is loaded again
13
13
  module ActiveSupport
@@ -85,6 +85,8 @@ module Bolt
85
85
  when %r:^lib/:
86
86
  name = file.sub('.rb', '').sub('lib/', '')
87
87
  features = self.models[name]
88
+ when %r:.feature$:
89
+ return [file]
88
90
  else
89
91
  #
90
92
  end
@@ -1,5 +1,7 @@
1
1
  require 'spec'
2
2
  require 'stringio'
3
+ require 'spec/spec_helper.rb' if File.exists?('spec/spec_helper.rb')
4
+
3
5
  #
4
6
  # Bolt::Runners::Rspec
5
7
  #
@@ -1,5 +1,6 @@
1
1
  require 'test/unit'
2
2
  require 'test/unit/ui/console/testrunner'
3
+ require 'test/test_helper.rb' if File.exists?('test/test_helper.rb')
3
4
  #
4
5
  # Bolt::Runners::TestUnit
5
6
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marcinbunsch-bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Bunsch
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-23 00:00:00 -07:00
12
+ date: 2009-06-24 00:00:00 -07:00
13
13
  default_executable: bolt
14
14
  dependencies: []
15
15