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

Version Path
radiant-forum-extension-3.0.7 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.6 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.5 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.4 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.3 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.2 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.1 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.0 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.0.rc6 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.0.rc4 spec/controllers/forums_controller_spec.rb
radiant-forum-extension-3.0.0.rc3 spec/controllers/forums_controller_spec.rb