Fix AS::Photo show page
This commit is contained in:
parent
f2e3102562
commit
5243a3203f
2 changed files with 16 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class ActivityStreams::PhotosController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
around_filter AuthenticationFilter.new
|
||||
around_filter AuthenticationFilter.new, :only => :create
|
||||
skip_before_filter :verify_authenticity_token, :only => :create
|
||||
|
||||
respond_to :json
|
||||
|
|
|
|||
15
spec/controllers/activity_streams/photos_controller_spec.rb
Normal file
15
spec/controllers/activity_streams/photos_controller_spec.rb
Normal 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
|
||||
|
||||
Loading…
Reference in a new issue