Permalink
Browse files

Fixed a bug causing a crash when running project spec from code file

  • Loading branch information...
1 parent 1bb5a3d commit 55a8630fed74554f93d831ba5c8c87a2df19ed49 @stcrocco committed Oct 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/rspec/rspec.rb
View
@@ -386,7 +386,7 @@ def run_current_document
elsif ext.spec_file? doc.path
opts[:files] = [doc.path]
elsif ext.code_file?(doc.path)
- files = ext.specs_for_code doc.path
+ opts[:files] = ext.specs_for_code doc.path
end
run_rspec_for prj, opts, :files => :documents_with_file, :on_failure => :ask,
:message => 'Do you want to run the tests all the same?'

0 comments on commit 55a8630

Please sign in to comment.