mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 23:41:48 +01:00
Merge pull request #62 from Popsch/review_tests_rebase
cucumber tests for the review mode
This commit is contained in:
commit
67b8a11600
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