<commit_before>require 'spec_helper'

Spree.describe Spree::Retail::Shopify::GeneratePosOrder, type: :model do
  include_context 'create_default_shop'
  include_context 'shopify_request'
  
  let(:shopify_cash_order) { create_shopify_order('450789469') }
  let(:shopify_order) { create_shopify_order('450789470') }
  let(:variant) { create :variant }

  before :each do
    allow(Spree::Variant).to receive(:find_by) { variant }
    variant.stock_items.first.update_attribute(:count_on_hand, 1900)
    allow_any_instance_of(Spree::Order).to receive(:ensure_available_shipping_rates) { true }
  end

  subject { described_class.new(shopify_order) }

  describe '#process' do
    subject { described_class.new(shopify_order).process }

    it 'successfully creates a solidus order' do<commit_msg>Getting rid of trailing white space<commit_after>require 'spec_helper'

Spree.describe Spree::Retail::Shopify::GeneratePosOrder, type: :model do
  include_context 'create_default_shop'
  include_context 'shopify_request'

  let(:shopify_cash_order) { create_shopify_order('450789469') }
  let(:shopify_order) { create_shopify_order('450789470') }
  let(:variant) { create :variant }

  before :each do
    allow(Spree::Variant).to receive(:find_by) { variant }
    variant.stock_items.first.update_attribute(:count_on_hand, 1900)
    allow_any_instance_of(Spree::Order).to receive(:ensure_available_shipping_rates) { true }
  end

  subject { described_class.new(shopify_order) }

  describe '#process' do
    subject { described_class.new(shopify_order).process }

    it 'successfully creates a solidus order' do
{'fraction_non_alphanumeric': 0.10820895522388059, 'fraction_numerical': 0.02736318407960199, 'mean_word_length': 6.057017543859649, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3405950', 'n_tokens_mistral': 558, 'n_tokens_neox': 513, 'n_words': 92}