Added specs for the Rate#for parameter. #1920

This commit is contained in:
Eric Davis
2009-01-16 15:54:14 -08:00
parent 820337576c
commit 0d9c7e50de
2 changed files with 29 additions and 0 deletions
+4
View File
@@ -23,4 +23,8 @@ class Rate < ActiveRecord::Base
def unlocked?
return !self.locked?
end
# API to find the Rate for a +user+ on a +project+ at a +date+
def self.for(user, project = nil, date = Date.today.to_s)
end
end