Correct ruby syntax highlight

Issue #1018 resolved
Anonymous created an issue

Github is a know user of the pygments on their backend server: https://github.com/toptal/chewy/blob/master/lib/chewy/rspec/update_index.rb

Comments (2)

  1. Tim Hatch

    The problem starts around line 189, looks like the first right curly brace closes the string interpolation too soon.

      failure_message_when_negated do
        if @updated.any?
          "Expected index `#{type_name}` not to be updated, but it was with #{
            @updated.map(&:values).flatten.group_by { |documents| documents[:_id] }.map do |id, documents|
              "\n  document id `#{id}` (#{documents.count} times)"
            end.join
          }\n"
        end
      end
    
  2. Log in to comment