lib/rubocop/rspec/align_let_brace.rb in rubocop-rspec-2.5.0 vs lib/rubocop/rspec/align_let_brace.rb in rubocop-rspec-2.6.0

- old
+ new

@@ -3,10 +3,11 @@ module RuboCop module RSpec # Shared behavior for aligning braces for single line lets class AlignLetBrace include RuboCop::RSpec::Language + include RuboCop::Cop::Util def initialize(root, token) @root = root @token = token end @@ -32,10 +33,10 @@ end def let_group_for(let) adjacent_let_chunks.detect do |chunk| chunk.any? do |member| - member == let && member.loc.line == let.loc.line + member == let && same_line?(member, let) end end end def adjacent_let_chunks