Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
context "With anonymous" do    
  context "viewing" do
    before do
      Wiki.allow_anonymous_view = true
    end

    test "should get index" do
      get :index
      response.should be_success
      assigns(:pages).should_not be_nil
    end
  end
end