Sha256: 88c9ac804078d791b9f62baf5fc616f6e1f1ef0fb37f579f3f1b7cdbcde66867

Contents?: true

Size: 354 Bytes

Versions: 9

Compression:

Stored size: 354 Bytes

Contents

require "spec_helper"
require "json"

describe Statesman::Adapters::ActiveRecordTransition do
  let(:transition_class) { Class.new }

  describe "including behaviour" do
    it "calls Class.serialize" do
      transition_class.should_receive(:serialize).with(:metadata, JSON).once
      transition_class.send(:include, described_class)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
statesman-0.7.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-0.6.1 spec/statesman/adapters/active_record_transition_spec.rb
statesman-0.6.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-0.5.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-0.4.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-0.3.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-0.2.1 spec/statesman/adapters/active_record_transition_spec.rb
statesman-0.2.0 spec/statesman/adapters/active_record_transition_spec.rb
statesman-0.1.0 spec/statesman/adapters/active_record_transition_spec.rb