Sha256: 154859813742c4b6d7cb4dc540862dd5139460aada97c3e22247906b6a48834a
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe PicturesController do render_views context "with public picture" do before do @picture = Factory(:public_picture) end it "should render index" do get :index response.should redirect_to(:new_user_session) end it "should render receiver's index" do get :index, :user_id => @picture.post_activity.receiver.to_param response.should be_success end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
social_stream-documents-0.2.4 | spec/controllers/pictures_controller_spec.rb |
social_stream-documents-0.2.3 | spec/controllers/pictures_controller_spec.rb |