cucumber tests for the review mode

This commit is contained in:
Sebastian Fischmeister 2012-01-30 09:56:58 -05:00
parent 8f5c04522e
commit d14a2a808d
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!