Sha256: 656eb30cab87f1aa3e85f4dcf5da36d6f677fae52b1d2e9a036fb96501badc4f
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true require "spec_helper" require "json" describe Statesman::Adapters::ActiveRecordTransition do let(:transition_class) { Class.new { def self.serialize(*_args); end } } describe "including behaviour" do it "calls Class.serialize" do if Gem::Version.new(ActiveRecord::VERSION::STRING) >= Gem::Version.new("7.1") expect(transition_class).to receive(:serialize).with(:metadata, coder: JSON).once else expect(transition_class).to receive(:serialize).with(:metadata, JSON).once end transition_class.send(:include, described_class) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
statesman-11.0.0 | spec/statesman/adapters/active_record_transition_spec.rb |