Sha256: a24413848e8e0721e95ac2d5488c508dcb4f5373576d0ee27b364cf380b34997
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
require 'spec_helper' module SpreeSignifyd describe CreateSignifydCase do describe "#perform" do let(:order) { create(:order_ready_to_ship) } let(:json) { JSON.parse(OrderSerializer.new(order).to_json) } it "calls Signifyd::Case#create with the correct params" do expect(Signifyd::Case).to receive(:create).with(json, SpreeSignifyd::Config[:api_key]) CreateSignifydCase.perform_now(order.id) end it "calls Signifyd::Case#create with the correct params" do expect(Signifyd::Case).to receive(:create).with(json, SpreeSignifyd::Config[:api_key]) CreateSignifydCase.perform_now(order.number) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_signifyd-1.1.0 | spec/lib/spree_signifyd/create_signifyd_case_spec.rb |