Files
openfoodnetwork/spec/models/spree/gateway_spec.rb
Maikel Linke dcb6f4676d Remove all unnecessary spec_helper require statements
The `.rspec` file is doing this for us.
2026-01-21 12:35:34 +11:00

22 lines
486 B
Ruby

# frozen_string_literal: true
RSpec.describe Spree::Gateway do
let(:test_gateway) do
Class.new(Spree::Gateway) do
def provider_class
Class.new do
def initialize(*); end
def imaginary_method; end
end
end
end
end
it "passes through all arguments on a method_missing call" do
gateway = test_gateway.new
expect(gateway.provider).to receive(:imaginary_method).with('foo')
gateway.imaginary_method('foo')
end
end