<commit_before>require 'spec_helper'
require 'spree/api/testing_support/helpers'
require 'support/request/authentication_workflow'

describe Spree::CheckoutController, type: :controller do
  context 'rendering edit from within spree for the current checkout state' do
    let(:order) { controller.current_order(true) }
    let(:user) { create(:user) }

    before do
      create(:line_item, order: order)

      allow(controller).to receive(:skip_state_validation?) { true }
      allow(controller).to receive(:spree_current_user) { user }
    end

    it "redirects to the OFN checkout page" do
      expect(spree_get(:edit)).to redirect_to checkout_path
    end
  end
end<commit_msg>Remove stub of a deleted method #deadcode<commit_after>require 'spec_helper'
require 'spree/api/testing_support/helpers'
require 'support/request/authentication_workflow'

describe Spree::CheckoutController, type: :controller do
  context 'rendering edit from within spree for the current checkout state' do
    let(:order) { controller.current_order(true) }
    let(:user) { create(:user) }

    before do
      create(:line_item, order: order)

      allow(controller).to receive(:spree_current_user) { user }
    end

    it "redirects to the OFN checkout page" do
      expect(spree_get(:edit)).to redirect_to checkout_path
    end
  end
end
{'fraction_non_alphanumeric': 0.0946656649135988, 'fraction_numerical': 0.0, 'mean_word_length': 4.436734693877551, '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': '3132706', 'n_tokens_mistral': 401, 'n_tokens_neox': 388, 'n_words': 108}