Permalink
Browse files

Actually setup the site too when grading

  • Loading branch information...
1 parent 64a9a0b commit c1041fdd0c164666ff9944602e5e92c04126bca3 @qrush qrush committed Jul 10, 2009
Showing with 3 additions and 0 deletions.
  1. +1 −0 lib/report_card.rb
  2. +2 −0 test/report_card_test.rb
View
@@ -13,6 +13,7 @@ module ReportCard
def self.grade
Integrity.new(config['integrity_config'])
+ self.setup
ignore = config['ignore'] ? Regexp.new(config['ignore']) : /[^\w\d\s]+/
projects = []
View
@@ -14,6 +14,7 @@ class ReportCardTest < Test::Unit::TestCase
stub(@project).name { "awesome" }
mock(Integrity).new(@config['integrity_config'])
+ mock(ReportCard).setup
mock(Integrity::Project).all.mock!.each.yields(@project)
grader = "grader"
@@ -29,6 +30,7 @@ class ReportCardTest < Test::Unit::TestCase
stub(@project).name { "awesome 1.9" }
mock(Integrity).new(@config['integrity_config'])
+ mock(ReportCard).setup
mock(Integrity::Project).all.mock!.each.yields(@project)
mock(ReportCard::Grader).new(@project, @config).never
mock(ReportCard::Index).create(anything, anything).never

0 comments on commit c1041fd

Please sign in to comment.