diaspora/spec/controllers/activity_streams/photos_controller_spec.rb
2011-06-29 11:33:32 -07:00

15 lines
318 B
Ruby

require 'spec_helper'
describe ActivityStreams::PhotosController do
describe '#show' do
before do
@photo = Factory(:activity_streams_photo, :author => bob.person)
sign_in :user, alice
end
it 'succeeds' do
get :show, :id => @photo.id
response.should be_success
end
end
end