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