You get to write tests like this. What could be easier
it "should not allow timesheets to end before they start" do
@timesheet_item.start_time = 1.hour.from_now
@timesheet_item.should_not be_valid
end
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment