spec/unit/state_transition_spec.rb in aasm-3.0.3 vs spec/unit/state_transition_spec.rb in aasm-3.0.4
- old
+ new
@@ -6,15 +6,21 @@
process = ProcessWithNewDsl.new
lambda { process.stop! }.should raise_error(AASM::InvalidTransition)
process.should be_sleeping
end
- it 'should not raise an exception when whiny' do
+ it 'should not raise an exception when not whiny' do
silencer = Silencer.new
silencer.smile!.should be_false
silencer.should be_silent
end
+ it 'should not raise an exception when superclass not whiny' do
+ sub = SubClassing.new
+ sub.smile!.should be_false
+ sub.should be_silent
+ end
+
end
describe AASM::SupportingClasses::StateTransition do
it 'should set from, to, and opts attr readers' do
opts = {:from => 'foo', :to => 'bar', :guard => 'g'}