diff --git a/features/step_definitions/validation_errors_steps.rb b/features/step_definitions/validation_errors_steps.rb index 7e8fac0..b9fead9 100644 --- a/features/step_definitions/validation_errors_steps.rb +++ b/features/step_definitions/validation_errors_steps.rb @@ -86,5 +86,8 @@ end Then(/^there should be no "(.*?)" errors$/) do |type| - @errors.each { |error| error.type.should_not == type.to_sym } + @errors.each { |error| + error.type.should_not + type.to_sym + } end diff --git a/lib/csvlint/validate.rb b/lib/csvlint/validate.rb index da65bb8..2cfa031 100644 --- a/lib/csvlint/validate.rb +++ b/lib/csvlint/validate.rb @@ -217,7 +217,7 @@ def parse_contents(stream, line = nil) end def csv_options_for_line(line) - # If a specific row_sep has been explicitly specified, don't mess with it + # If a specific row_sep has been explicitly specified, don't mess with it. return @csv_options unless @csv_options[:row_sep] == :auto if line.end_with?("\r\n")