Sha256: dbddce255751fd4f7ff7fa0fd80648acb00361be3631640eec252a88bba54f20
Contents?: true
Size: 891 Bytes
Versions: 4
Compression:
Stored size: 891 Bytes
Contents
require 'spec_helper' describe Massimo::Server do let(:app) { Massimo::Server.new(Massimo.site) } it 'should serve up static files' do with_file 'public/stylesheets/main.css', 'body { font-size: 12px; }' do get '/stylesheets/main.css' last_response.body.should == 'body { font-size: 12px; }' end end it 'should serve up directory index files' do with_file 'public/about-us/index.html', 'About Us' do get '/about-us/' last_response.body.should == 'About Us' end end context 'when files have changed' do it 'should process the site on request' do with_file 'pages/index.haml' do mock(Massimo.site).process get '/' end end end context 'when files have not changed' do it 'should not process the site on request' do dont_allow(Massimo.site).process get '/' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
massimo-0.8.3 | spec/massimo/server_spec.rb |
massimo-0.8.2 | spec/massimo/server_spec.rb |
massimo-0.8.1 | spec/massimo/server_spec.rb |
massimo-0.8.0 | spec/massimo/server_spec.rb |