lib/rubocop/cop/rspec/variable_definition.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/variable_definition.rb in rubocop-rspec-2.26.0
- old
+ new
@@ -58,11 +58,11 @@
variable.value.to_sym.inspect
end
end
def style_offense?(variable)
- style == :symbols && string?(variable) ||
- style == :strings && symbol?(variable)
+ (style == :symbols && string?(variable)) ||
+ (style == :strings && symbol?(variable))
end
def string?(node)
node.str_type?
end