<commit_before>describe Spree::LineItemSerializer do
  let(:line_item) { create :line_item }
  subject { ActiveModel::Serializer::Adapter::JsonApi.new(described_class.new line_item) }

  its(:to_json) do
    is_expected.to be_json_eql <<-JSON
      {
        "data" : {
          "attributes" : {
            "additional_tax_total" : 0,
            "adjustment_total" : 0.0,
            "amount" : "10.0",
            "cost_price" : "17.0",
            "currency" : "USD",
            "display_amount" : "$10.00",
            "display_total" : "$10.00",
            "order_id" : #{line_item.order_id},
            "price" : "10.0",<commit_msg>update line item serializer spec<commit_after>describe Spree::LineItemSerializer do
  let(:line_item) { create :line_item }
  subject { ActiveModel::Serializer::Adapter::JsonApi.new(described_class.new line_item) }

  its(:to_json) do
    is_expected.to be_json_eql <<-JSON
      {
        "data" : {
          "attributes" : {
            "additional_tax_total" : "0.0",
            "adjustment_total" : "0.0",
            "amount" : "10.0",
            "cost_price" : "17.0",
            "currency" : "USD",
            "display_amount" : "$10.00",
            "display_total" : "$10.00",
            "order_id" : #{line_item.order_id},
            "price" : "10.0",
{'fraction_non_alphanumeric': 0.15484363081617086, 'fraction_numerical': 0.031273836765827616, 'mean_word_length': 2.1538461538461537, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7315284', 'n_tokens_mistral': 458, 'n_tokens_neox': 431, 'n_words': 71}