diff options
author | tony <tony> | 2009-03-06 12:06:21 +0000 |
---|---|---|
committer | tony <tony> | 2009-03-06 12:06:21 +0000 |
commit | d416670b11c4e90fd46d3d085cca4ab58050cca4 (patch) | |
tree | bbd270d49c838a863c0e31f39a3d9915b1e1ec0e | |
parent | b1535587b237d2dc48ce6cb5c24917b99bf58bd8 (diff) |
Add test for date_response_required_by. (We need some more of these for
more complex scenarios but this is useful for now)
-rw-r--r-- | spec/models/info_request_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/info_request_spec.rb b/spec/models/info_request_spec.rb index aeda6cfec..bdbb05723 100644 --- a/spec/models/info_request_spec.rb +++ b/spec/models/info_request_spec.rb @@ -75,6 +75,10 @@ describe InfoRequest, " when emailing" do # raise ActsAsXapian::ActsAsXapianJob.find(:all).to_yaml end + + it "knows when it needs answered by" do + @info_request.date_response_required_by.strftime("%Y-%m-%d").should == '2007-11-22' + end end |