spec/ramaze/dispatcher/file.rb in ramaze-2008.06 vs spec/ramaze/dispatcher/file.rb in ramaze-2008.11

- old
+ new

@@ -35,11 +35,11 @@ end it 'should send Last-Modified' do res = get '/test_download.css' res.headers['Last-Modified'].should.not.be == nil - res.headers['Last-Modified'].should == File.stat(@public_root/'test_download.css').mtime.httpdate + res.headers['Last-Modified'].should == File.mtime(@public_root/'test_download.css').httpdate end it 'should respect ETag with IF_NONE_MATCHES' do res = get '/test_download.css' etag = res.headers['ETag'] @@ -55,6 +55,6 @@ mtime.should.not.be == nil res = get '/test_download.css', :if_modified_since=>mtime res.status.should == 304 res.body.should == '' end -end \ No newline at end of file +end