summaryrefslogtreecommitdiffstats
path: root/autotest/rspec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'autotest/rspec.rb')
-rw-r--r--autotest/rspec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/autotest/rspec.rb b/autotest/rspec.rb
index 89978d866..42f4c004b 100644
--- a/autotest/rspec.rb
+++ b/autotest/rspec.rb
@@ -29,7 +29,7 @@ class Autotest::Rspec < Autotest
def consolidate_failures(failed)
filters = Hash.new { |h,k| h[k] = [] }
failed.each do |spec, failed_trace|
- if f = test_files_for(failed).find { |f| failed_trace =~ Regexp.new(f) } then
+ if f = test_files_for(failed).find { |f| failed_trace =~ Regexp.new(f) }
filters[f] << spec
break
end
@@ -50,7 +50,7 @@ class Autotest::Rspec < Autotest
# ~/.autotest to provide a different spec command then the default
# paths provided.
def spec_command(separator=File::ALT_SEPARATOR)
- unless defined?(@spec_command) then
+ unless defined?(@spec_command)
@spec_command = spec_commands.find { |cmd| File.exists? cmd }
raise RspecCommandError, "No spec command could be found!" unless @spec_command