Merge pull request #62 from Popsch/review_tests_rebase

cucumber tests for the review mode
This commit is contained in:
Matt Rogers 2012-02-10 08:27:54 -08:00
commit 67b8a11600
4 changed files with 63 additions and 1 deletions

View file

@ -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!