public
Description: El Dorado is a full-stack community web application written in Ruby/Rails.
Homepage: http://almosteffortless.com/eldorado/
Clone URL: git://github.com/trevorturk/el-dorado.git
tagging 0.5 release

git-svn-id: http://eldorado.googlecode.com/svn/tags/rel-0.5@512 
9c008b19-a030-0410-9975-d76d301b4276
trevorturk (author)
Tue Nov 13 21:12:41 -0800 2007
commit  60b1205725c1117fe5d8c3a615c642d95c000c02
tree    b7ff1240c345c1a839c51b60c19f922b31fc9f84
parent  dedaf26ff2df63da273b930573ddf0a9354777ca
...
54
55
56
 
57
58
59
...
54
55
56
57
58
59
60
0
@@ -54,6 +54,7 @@ class PostsController < ApplicationController
0
   
0
   def quote
0
     @body = "[quote=#{@post.user.login}]#{@post.body}[/quote]"
0
+ @post = nil # clear post so form with create a new one
0
     render :template => "posts/new"
0
   end
0
       
...
48
49
50
 
51
52
53
...
48
49
50
51
52
53
54
0
@@ -48,6 +48,7 @@ class UsersController < ApplicationController
0
   end
0
   
0
   def confirm_delete
0
+ @user = User.find(params[:id])
0
   end
0
   
0
   def login
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@
0
     <span class="top">Delete User</span>
0
       <p><label for="confirm">Confirm</label>: <%= check_box_tag(:confirm) %></p>
0
       <p>
0
- <%= submit_tag "Delete User", :disable_with => "Delete User" %>
0
+ <%= submit_tag "Delete User", :disable_with => "Delete User" %>&nbsp;
0
         <%= link_to 'Cancel', @user %>
0
       </p>
0
   </div>
...
135
136
137
138
 
 
 
 
 
139
140
141
...
135
136
137
 
138
139
140
141
142
143
144
145
0
@@ -135,7 +135,11 @@ class PostsControllerTest < Test::Unit::TestCase
0
     assert_equal old_post_count+1, Post.count
0
   end
0
   
0
- def test_should_quotes_actually_work
0
+ def test_should_work_when_quoting_a_post
0
+ # quote an existing post
0
+ # see new post template
0
+ # post object should be a new post
0
+ # body of new post should be body of quoted post
0
   end
0
   
0
 end
...
161
162
163
 
 
 
 
 
 
164
...
161
162
163
164
165
166
167
168
169
170
0
@@ -161,4 +161,10 @@ class UsersControllerTest < Test::Unit::TestCase
0
   def test_should_show_user_as_online_if_online_at_within_last_5_minutes
0
   end
0
   
0
+ def test_confirm_delete_page_works
0
+ get :confirm_delete, :id => 1
0
+ assert_response :success
0
+ assert_template 'confirm_delete'
0
+ end
0
+
0
 end

Comments

    No one has commented yet.