Skip to content
Extraits de code Groupes Projets
Valider 7556dccb rédigé par Jonne Hass's avatar Jonne Hass
Parcourir les fichiers

test that photosController#index succeeds without any photos

parent b8dbf1d8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -35,6 +35,12 @@ describe PhotosController do ...@@ -35,6 +35,12 @@ describe PhotosController do
end end
describe '#index' do describe '#index' do
it "succeeds without any available pictures" do
get :index, :person_id => Factory(:person).id.to_s
response.should be_success
end
it "displays the logged in user's pictures" do it "displays the logged in user's pictures" do
get :index, :person_id => alice.person.id.to_s get :index, :person_id => alice.person.id.to_s
assigns[:person].should == alice.person assigns[:person].should == alice.person
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter