Sha256: 0931b21afb1a70f00204c7d4ff4cacaf28f1d2c8d9916309de5f138ee1cfa722

Contents?: true

Size: 531 Bytes

Versions: 17

Compression:

Stored size: 531 Bytes

Contents

require 'spec_helper'

describe "StateMachine" do

  describe "is_state_machine" do

    before(:each) do
      class Earth
        extend DataMapper::Is::StateMachine

        stub!(:properties).and_return([])
        stub!(:property)
        stub!(:before)

        stub!(:state_machine_context?).and_return(true)
        stub!(:push_state_machine_context)
        stub!(:pop_state_machine_context)
      end
    end

    it "declaration should succeed" do
      class Earth
        is_state_machine
      end
    end

  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
ardm-is-state_machine-1.2.0 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.2.0 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.2.0.rc2 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.2.0.rc1 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.1.0 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.1.0.rc3 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.1.0.rc2 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.1.0.rc1 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.0.2 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.0.1 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.0.0 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.0.0.rc3 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.0.0.rc2 spec/unit/state_machine_spec.rb
dm-is-state_machine-1.0.0.rc1 spec/unit/state_machine_spec.rb
dm-is-state_machine-0.10.2 spec/unit/state_machine_spec.rb
dm-is-state_machine-0.10.1 spec/unit/state_machine_spec.rb
dm-is-state_machine-0.10.0 spec/unit/state_machine_spec.rb