Description:
updated runner_spec
git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@418 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r77:b0f4f829e914 - - 1 file changed: 1 inserted, 1 deleted
@@ -25,13 +25,13 | |||||
|
25 |
|
25 | ||
|
26 | it "should grade oldest task in queue" do |
|
26 | it "should grade oldest task in queue" do |
|
27 | submission = create_normal_submission_mock_from_file("test1_correct.c") |
|
27 | submission = create_normal_submission_mock_from_file("test1_correct.c") |
|
28 |
|
28 | ||
|
29 | submission.should_receive(:graded_at=) |
|
29 | submission.should_receive(:graded_at=) |
|
30 | submission.should_receive(:points=).with(135) |
|
30 | submission.should_receive(:points=).with(135) |
|
31 |
- submission.should_receive(:grader_comment=).with( |
|
31 | + submission.should_receive(:grader_comment=).with("[PP][PPPPP][PPP]") |
|
32 | submission.should_receive(:compiler_message=).with('') |
|
32 | submission.should_receive(:compiler_message=).with('') |
|
33 | submission.should_receive(:save) |
|
33 | submission.should_receive(:save) |
|
34 |
|
34 | ||
|
35 | # mock task |
|
35 | # mock task |
|
36 | task = stub(Task,:id => 1, :submission_id => submission.id) |
|
36 | task = stub(Task,:id => 1, :submission_id => submission.id) |
|
37 | Task.should_receive(:get_inqueue_and_change_status).and_return(task) |
|
37 | Task.should_receive(:get_inqueue_and_change_status).and_return(task) |
You need to be logged in to leave comments.
Login now