search for: staticpagescontroller

Displaying 1 result from an estimated 1 matches for "staticpagescontroller".

2011 Aug 28
3
rspec-rails render_views doesn't render layouts? / how to check flash isn't rendered
...d" do flash[:notice] = "flash boo" flash[:error] = "flash boo" flash[:alert] = "flash boo" get :show, :page => ''privacy_policy'' response.body.should have_content(''flash boo'') end end class StaticPagesController < ApplicationController layout ''master'' def show response.headers[''Cache-Control''] = "public, max-age=#{6.hours}" render "static_pages/#{params[:page]}" end end I''ve tried changing to a layout which does render fla...