Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
switch to matching heroku style
Browse files Browse the repository at this point in the history
  • Loading branch information
tansaku committed Jul 9, 2018
1 parent 681e110 commit b6e81ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/graders/rspec_grader/github_rspec_grader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
module Graders
class GithubRspecGrader < RspecGrader
def initialize(submission_path, assignment)
super('', assignment)
super(submission_path, assignment)
@timeout = 180
@load_student_files = false
username = File.open(submission_path, &:readline)
ENV['GITHUB_USERNAME'] = username.strip.delete("\n")
github_file = Dir[File.join(@submission_path, '*')].first # there should only be one file submitted if its a github submission.
ENV['GITHUB_USERNAME'] = IO.read(github_file).strip.delete("\n")
# http://github.com/username/assignment_name is the uri?
end
end
Expand Down

0 comments on commit b6e81ba

Please sign in to comment.