mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
migrating to aasm - code part
This commit is contained in:
parent
65e3a8ff30
commit
00819ce27b
54 changed files with 2656 additions and 839 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue