Permalink
Browse files

roll back assumption of 'spec' directory

  • Loading branch information...
1 parent bcea9dc commit 593804ebfb61ba1e239c3e42615f53df311dda4d @dchelimsky dchelimsky committed May 10, 2010
Showing with 0 additions and 6 deletions.
  1. +0 −1 lib/rspec/core/configuration_options.rb
  2. +0 −5 spec/rspec/core/configuration_options_spec.rb
@@ -23,7 +23,6 @@ def apply_to(config)
def parse_command_line_options
@options = Parser.parse!(@args)
- @args << 'spec' if @args.empty? and FileTest.directory? 'spec'
@options[:files_or_directories_to_run] = @args
@options
end
@@ -77,11 +77,6 @@ def options_from_args(*args)
options_from_args("dir", "spec/file1_spec.rb", "spec/file2_spec.rb").should include(:files_or_directories_to_run => ["dir", "spec/file1_spec.rb", "spec/file2_spec.rb"])
end
- it "assumes a 'spec' directory if it exists" do
- FileTest.stub(:directory?).with("spec").and_return true
- options_from_args().should include(:files_or_directories_to_run => ["spec"])
- end
-
it "provides no files or directories if spec directory does not exist" do
FileTest.stub(:directory?).with("spec").and_return false
options_from_args().should include(:files_or_directories_to_run => [])

0 comments on commit 593804e

Please sign in to comment.