<commit_before># frozen_string_literal: true

require 'spec_helper'

module Spree
  describe PaypalController, type: :controller do
    context 'when cancelling' do
      it 'redirects back to checkout' do
        expect(spree_get(:cancel)).to redirect_to checkout_path
      end
    end

    context 'when confirming' do
      let(:previous_order) { controller.current_order(true) }
      let(:payment_method) { create(:payment_method) }
<commit_msg>Rename describe block names to controller actions<commit_after># frozen_string_literal: true

require 'spec_helper'

module Spree
  describe PaypalController, type: :controller do
    context '#cancel' do
      it 'redirects back to checkout' do
        expect(spree_get(:cancel)).to redirect_to checkout_path
      end
    end

    context '#confirm' do
      let(:previous_order) { controller.current_order(true) }
      let(:payment_method) { create(:payment_method) }

{'fraction_non_alphanumeric': 0.08450704225352113, 'fraction_numerical': 0.0, 'mean_word_length': 3.9945945945945946, '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': '6881480', 'n_tokens_mistral': 269, 'n_tokens_neox': 261, 'n_words': 74}