Applied rubocop cop 'Style/Next' and 'Style/UselessAssignment'.

This commit is contained in:
Thorsten Eckel 2015-07-03 19:44:57 +02:00
parent efbeef41e1
commit 0c0ebe76d4

View file

@ -1,5 +1,4 @@
# encoding: utf-8 # encoding: utf-8
# rubocop:disable Next, UselessAssignment
require 'test_helper' require 'test_helper'
class SessionEnhancedTest < ActiveSupport::TestCase class SessionEnhancedTest < ActiveSupport::TestCase
@ -297,15 +296,14 @@ class SessionEnhancedTest < ActiveSupport::TestCase
messages.each {|message| messages.each {|message|
#puts "" #puts ""
#puts "message: #{message.inspect}" #puts "message: #{message.inspect}"
if message['event'] == 'resetCollection' next if message['event'] != 'resetCollection'
#puts "rc: " #puts "rc: "
if message['data'] next if !message['data']
message['data'].each {|key, _value|
#puts "rc: #{key}" message['data'].each {|key, _value|
collections_result[key] = true #puts "rc: #{key}"
} collections_result[key] = true
end }
end
} }
#puts "c: #{collections_result.inspect}" #puts "c: #{collections_result.inspect}"
collections_orig.each {|key, _value| collections_orig.each {|key, _value|