Applied rubocop cop 'Style/Next'.

This commit is contained in:
Thorsten Eckel 2015-07-03 19:43:38 +02:00
parent 70e126a95c
commit efbeef41e1

View file

@ -1,5 +1,4 @@
# encoding: utf-8
# rubocop:disable Next, CyclomaticComplexity
require 'test_helper'
class SessionCollectionsTest < ActiveSupport::TestCase
@ -139,7 +138,8 @@ class SessionCollectionsTest < ActiveSupport::TestCase
def check_if_collection_exists(results, collection, attributes = nil)
results.each {|result|
next if !result
if result[:collection] && result[:collection][collection]
next if !result[:collection]
next if !result[:collection][collection]
# check just if collection exists
return true if !attributes
@ -154,7 +154,6 @@ class SessionCollectionsTest < ActiveSupport::TestCase
}
return true if match_all
}
end
}
nil
end