Permalink
Browse files

cuke now works, but specs don't

  • Loading branch information...
1 parent 9f7b495 commit cc6c2c0d36ca479ae5eac3b3faf37b7c048faff7 @justinko justinko committed Jun 11, 2011
Showing with 5 additions and 4 deletions.
  1. +1 −1 features/configuration/default_path.feature
  2. +4 −3 lib/rspec/core/configuration.rb
@@ -1,4 +1,4 @@
-@no-ruby-186
+@announce
Feature: default_path
As of rspec-2.7 (not yet released), you can just type `rspec` to run all
@@ -299,9 +299,9 @@ def reporter
def files_or_directories_to_run=(*files)
files = files.flatten
- if files.empty? && default_path
- files << default_path
- end
+ # if files.empty? && default_path
+ # files << default_path
+ # end
self.files_to_run = get_files_to_run(files)
end
@@ -427,6 +427,7 @@ def configure_expectation_framework
end
def load_spec_files
+ self.files_or_directories_to_run=default_path if files_to_run.empty?
files_to_run.map {|f| load File.expand_path(f) }
raise_if_rspec_1_is_loaded
end

0 comments on commit cc6c2c0

Please sign in to comment.