Sha256: ed54a248784800bee93d872bc0128b2d2a3dde8020861b41e834ffbba3131906
Contents?: true
Size: 711 Bytes
Versions: 11
Compression:
Stored size: 711 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe ForumsController do dataset :forums before do controller.stub!(:request).and_return(request) Radiant::Config['forum.public?'] = true end describe "on get to index" do before do get :index end it "should render the forum front page" do response.should be_success response.should render_template("index") end end describe "on get to show" do before do @forum = forums(:public) get :show, :id => forum_id(:public) end it "should render the forum template" do response.should be_success response.should render_template("show") end end end
Version data entries
11 entries across 11 versions & 1 rubygems