<commit_before>class FakeShipwireApi < Shipwire::Api; end





describe SolidusShipwire::Shipwireable::ShipwireApi do
  context "when api_class is configured" do
    let(:dummy_class) do
      Class.new do
        extend SolidusShipwire::Shipwireable

        acts_as_shipwireable api_class: FakeShipwireApi
      end
    end

    let(:described_class) { dummy_class }

    it_behaves_like "shipwire api shipwireable"
    it_behaves_like "shipwire integrated object"
  end
end<commit_msg>Updated test classes to respond to find, update and create<commit_after>class FakeShipwireApi < Shipwire::Api
  def find; end

  def update; end

  def create; end
end

class DummyClass
  include ActiveModel::Model
  extend SolidusShipwire::Shipwireable

  acts_as_shipwireable api_class: FakeShipwireApi
end

describe SolidusShipwire::Shipwireable::ShipwireApi do
  context "when api_class is configured" do
    describe DummyClass do
      it_behaves_like "shipwireable api class"
      it_behaves_like "shipwireable api instance"
    end
  end
end
{'fraction_non_alphanumeric': 0.05202312138728324, 'fraction_numerical': 0.0, 'mean_word_length': 4.301020408163265, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1789793', 'n_tokens_mistral': 335, 'n_tokens_neox': 327, 'n_words': 90}