Skip to content

Commit

Permalink
[SPEC] made uncompleted tests pending
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdill committed Feb 24, 2011
1 parent bb4afc2 commit 4123400
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions spec/models/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,21 +182,9 @@
end

it 'should calculate the hours a user needs to meet their daily target hours' do
pending()
should == something

end
end

#def expected_hours(date)
# weekly_hours = (date.cweek - 1) * daily_target_hours * 5
# eff_day = [date.cwday, 5].min
# daily_hours = eff_day * daily_target_hours
# weekly_hours + daily_hours
#end

#def target_hours_offset(date)
# worked_hours = WorkUnit.for_user(self).scheduled_between(date.beginning_of_year, date.end_of_day).sum(:effective_hours)
# worked_hours - expected_hours(date)
#end

end

0 comments on commit 4123400

Please sign in to comment.