mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
cucumber tests for the review mode
This commit is contained in:
parent
8f5c04522e
commit
d14a2a808d
4 changed files with 63 additions and 1 deletions
|
|
@ -68,7 +68,17 @@ class ProjectTest < ActiveSupport::TestCase
|
|||
assert_equal :active, @timemachine.aasm_current_state
|
||||
assert @timemachine.active?
|
||||
end
|
||||
|
||||
|
||||
def test_review_project
|
||||
assert_nil @timemachine.last_reviewed
|
||||
assert @timemachine.needs_review?(nil)
|
||||
end
|
||||
|
||||
def test_review_completedprojects
|
||||
@timemachine.complete!
|
||||
assert !@timemachine.needs_review?(nil)
|
||||
end
|
||||
|
||||
def test_complete_project
|
||||
assert_nil @timemachine.completed_at
|
||||
@timemachine.complete!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue