public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Search Repo:
Fixed horrible can't register bug
Michael Hartl (author)
Mon Apr 07 21:45:27 -0700 2008
commit  989780e15cf52d7d15cd44ef9971643c18035dfa
tree    e6042a6be31e9a3c422d3d4239e16c065c2ed607
parent  f39f63da0207579e54c7d8acddf95fadc8620bf3
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 class PeopleController < ApplicationController
0
   
0
- before_filter :login_required
0
+ before_filter :login_required, :except => [:new, :create]
0
   before_filter :correct_user_required, :only => [ :edit, :update ]
0
   
0
   def index
...
14
15
16
17
 
18
19
20
...
14
15
16
 
17
18
19
20
0
@@ -14,7 +14,7 @@
0
 
0
 # Search adds a significant overhead to tests, so disable it by default.
0
 # Set this to true to run the tests with search enabled.
0
-SEARCH_IN_TESTS = true
0
+SEARCH_IN_TESTS = false
0
 
0
 # Search runs if test is not true, or (if test true) if search is true.
0
 def search?
...
31
32
33
 
 
 
 
 
 
34
35
36
...
46
47
48
 
 
 
49
50
51
...
31
32
33
34
35
36
37
38
39
40
41
42
...
52
53
54
55
56
57
58
59
60
0
@@ -31,6 +31,12 @@
0
       response.should render_template("new")
0
     end
0
     
0
+ it "should allow non-logged-in users to view new page" do
0
+ logout
0
+ get :new
0
+ response.should be_success
0
+ end
0
+
0
     it "should have a working show page" do
0
       get :show, :id => @person
0
       response.should be_success
0
@@ -46,6 +52,9 @@
0
   end
0
   
0
   describe "signup" do
0
+ before(:each) do
0
+ logout
0
+ end
0
 
0
     it 'allows signup' do
0
       lambda do

Comments

    No one has commented yet.