Commit 5243a320 authored by Raphael Sofaer's avatar Raphael Sofaer

Fix AS::Photo show page

parent f2e31025
......@@ -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
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment