Sha256: ef79a7a12e1d7ff12fabb2fdf967830bb8d9d03aef69a225a13e5507b5344b9f

Contents?: true

Size: 425 Bytes

Versions: 20

Compression:

Stored size: 425 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
      expect(transition_class).to receive(:serialize).with(:metadata, JSON).once
      transition_class.send(:include, described_class)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
statesman-10.2.3 spec/statesman/adapters/active_record_transition_spec.rb
statesman-10.2.2 spec/statesman/adapters/active_record_transition_spec.rb
statesman-10.2.1 spec/statesman/adapters/active_record_transition_spec.rb
statesman-10.2.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-10.1.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-10.0.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-9.0.1 spec/statesman/adapters/active_record_transition_spec.rb
statesman-9.0.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-8.0.3 spec/statesman/adapters/active_record_transition_spec.rb
statesman-8.0.2 spec/statesman/adapters/active_record_transition_spec.rb
statesman-8.0.1 spec/statesman/adapters/active_record_transition_spec.rb
statesman-8.0.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-7.4.1 spec/statesman/adapters/active_record_transition_spec.rb
statesman-7.4.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-7.3.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-7.2.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-7.1.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-7.0.1 spec/statesman/adapters/active_record_transition_spec.rb
statesman-7.0.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-6.0.0 spec/statesman/adapters/active_record_transition_spec.rb