From 8398750aabc99dd51e47f6148e5182d22d1f46ec Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 9 Apr 2012 23:50:28 +0200 Subject: [PATCH] Specs for StaticPagesController --- app/views/static_pages/manual.html.erb | 0 spec/controllers/static_pages_controller_spec.rb | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 app/views/static_pages/manual.html.erb diff --git a/app/views/static_pages/manual.html.erb b/app/views/static_pages/manual.html.erb new file mode 100644 index 0000000..e69de29 diff --git a/spec/controllers/static_pages_controller_spec.rb b/spec/controllers/static_pages_controller_spec.rb index 67f76af..cffd9ef 100644 --- a/spec/controllers/static_pages_controller_spec.rb +++ b/spec/controllers/static_pages_controller_spec.rb @@ -2,4 +2,11 @@ require 'spec_helper' describe StaticPagesController do + describe '#show' do + it 'renders template named by params[:page]' do + get :show, :page => 'manual' + response.should render_template('manual') + end + end + end