migrating to aasm - code part

This commit is contained in:
Stefan Richter 2011-05-16 15:42:47 +08:00 committed by Reinier Balt
parent 65e3a8ff30
commit 00819ce27b
54 changed files with 2656 additions and 839 deletions

View file

@ -276,11 +276,11 @@ class RecurringTodoTest < ActiveSupport::TestCase
def test_toggle_completion
t = @yearly
assert_equal :active, t.current_state
assert_equal :active, t.aasm_current_state
t.toggle_completion!
assert_equal :completed, t.current_state
assert_equal :completed, t.aasm_current_state
t.toggle_completion!
assert_equal :active, t.current_state
assert_equal :active, t.aasm_current_state
end
def test_starred