alaashafaee/Coolsoft-14 — pull request #546 by MohabGhanim (2014-05-16 05:10:09+00:00)
Title: Pull Request: C5_Mohab_468_Contest_Standings_5.25

For Scenario Reviewers:

Navigate to contests/1/standings, a table containing students versus problems should be visible

The green color indicates that a problem was solved correctly and the red color indicates the opposite.

The numbers inside the green box indicates : (Number of trials until first correct submission ) / (Time in minutes between the first correct submission and contest start time )

To Test:

Change one of the submissions to be right answer

c = ContestProgress.find(4)

c.status = true

c.save

Notice the changed value in the time part

Students are ranked by the number of correct problems they solved, but if two or more students have the same number of correct submission, the one with earlier submission gets higher rank.

To Test:

Currently studentI and studentIII solved equal number of problems, change the submission date for studentI one so that studentIII will have advantage in submission time

c = ContestProgress.find(1)

c.updated_at = Time.now

c.save

Notice the change in ranks

If the contest has finished the student will be informed

To Test:

c = Contest.find(1)

c.end_time = Time.new(2014, 5, 2)

c.save

@MussabElDash @linsara @nadineadel @Husseny