Monday 17 May 2010

Why I love Rails

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

No comments:

Post a Comment