lib/rubocop/cop/rspec/variable_definition.rb in rubocop-rspec-2.10.0 vs lib/rubocop/cop/rspec/variable_definition.rb in rubocop-rspec-2.11.0
- old
+ new
@@ -45,10 +45,10 @@
private
def correct_variable(variable)
case variable.type
when :dsym
- variable.source[1..-1]
+ variable.source[1..]
when :sym
variable.value.to_s.inspect
else
variable.value.to_sym.inspect
end