GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: yet another gallery application done in Rails
Clone URL: git://github.com/kingmt/gallery.git
fixed some broken tests, some still broken
kingmt (author)
Fri Jul 25 13:43:52 -0700 2008
commit  624fb8c7fc09f1fc450202fc51d0e493a2301b8c
tree    9fcfad8ec0e4c2d99a86793ed9ec29d44a0591d5
parent  38882b88d5c3767b46126baa4a669c5274025950
...
63
64
65
66
 
 
 
67
68
...
63
64
65
 
66
67
68
69
70
0
@@ -63,6 +63,8 @@ class PicturesController < ApplicationController
0
   
0
   def owner?
0
     get_album
0
- logged_in? && current_user && current_user.id == @album.user.id
0
+ logged_in? &&
0
+ current_user &&
0
+ current_user.id == @album.user.id
0
   end
0
 end
...
7
8
9
10
11
12
13
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
16
 
 
17
18
...
7
8
9
 
 
 
 
 
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0
@@ -7,12 +7,24 @@ class PicturesControllerTest < ActionController::TestCase
0
     @picture = @album.pictures.first
0
   end
0
   
0
- should_be_restful do |resource|
0
- resource.parent = [:album]
0
- resource.formats = [:html]
0
- resource.create.redirect = "album_pictures_path(@album)"
0
- resource.update.redirect = "album_pictures_path(@album)"
0
+ context 'logged in' do
0
+ setup {login_as(:quentin)}
0
+
0
+ should_be_restful do |resource|
0
+ resource.parent = [:album]
0
+ resource.formats = [:html]
0
+ resource.create.flash = /uploaded/i
0
+ resource.create.redirect = "album_pictures_path(@album)"
0
+ resource.update.redirect = "album_pictures_path(@album)"
0
+ end
0
+
0
+ should 'zzz debug' do
0
+
0
+ end
0
+
0
   end
0
   
0
+
0
+
0
 
0
 end

Comments

    No one has commented yet.