I have following code in an action: render :file => 'public/404.html' and return This works fine in the browser. I have written the following rspec example to test this: it "renders 404" do get :new response.should render_template('public/404.html') end Running this example results in the following error: Failure/Error: response.should render_template('public/404.html') Expected block to return tr