diff --git a/spec/unit/event_spec.rb b/spec/unit/event_spec.rb index 18f1001..08da8fd 100644 --- a/spec/unit/event_spec.rb +++ b/spec/unit/event_spec.rb @@ -296,13 +296,15 @@ describe 'current event' do end describe "when calling events with fire/fire!" do - it "fire should populate aasm.current_event" do + it "fire should populate aasm.current_event and transition (sleeping to showering)" do pe.aasm.fire(:wakeup) expect(pe.aasm.current_event).to eq :wakeup + expect(pe.aasm.current_state).to eq :showering end - it "fire! should populate aasm.current_event" do + it "fire! should populate aasm.current_event and transition (sleeping to showering)" do pe.aasm.fire!(:wakeup) expect(pe.aasm.current_event).to eq :wakeup! + expect(pe.aasm.current_state).to eq :showering end end end