Fix AS::Photo show page

This commit is contained in:
Raphael Sofaer 2011-06-29 11:33:32 -07:00
parent f2e3102562
commit 5243a3203f
2 changed files with 16 additions and 1 deletions

View file

@ -24,7 +24,7 @@ class ActivityStreams::PhotosController < ApplicationController
end end
end end
around_filter AuthenticationFilter.new around_filter AuthenticationFilter.new, :only => :create
skip_before_filter :verify_authenticity_token, :only => :create skip_before_filter :verify_authenticity_token, :only => :create
respond_to :json respond_to :json

View file

@ -0,0 +1,15 @@
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