Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxwell Salzberg <maxwell@joindiaspora.com>2012-05-17 05:55:08 +0400
committerMaxwell Salzberg <maxwell@joindiaspora.com>2012-05-18 01:55:53 +0400
commit471ce309ea005466a7b9ed2dbedf8f42c91da9e4 (patch)
tree33d7bdcbae3cc90486722f60a6949e3e3abe764e /spec/integration/activity_streams
parent69d81951a5ccc43ee89c864ffc5ad7c5e8dd0fa3 (diff)
kill your darlings; remove diaspora_client with fire
Diffstat (limited to 'spec/integration/activity_streams')
-rw-r--r--spec/integration/activity_streams/photos_controller_spec.rb58
1 files changed, 0 insertions, 58 deletions
diff --git a/spec/integration/activity_streams/photos_controller_spec.rb b/spec/integration/activity_streams/photos_controller_spec.rb
deleted file mode 100644
index e95a3ae4e..000000000
--- a/spec/integration/activity_streams/photos_controller_spec.rb
+++ /dev/null
@@ -1,58 +0,0 @@
-require 'spec_helper'
-
-describe ActivityStreams::PhotosController do
- describe '#create' do
- before do
- @json = JSON.parse <<JSON
- {
- "activity": {
- "actor": {
- "url":"http://cubbi.es/daniel",
- "displayName":"daniel",
- "objectType":"person"
- },
- "published":"2011-05-19T18:12:23Z",
- "verb":"save",
- "object": {
- "objectType":"photo",
- "url":"http://i658.photobucket.com/albums/uu308/R3b3lAp3/Swagger_dog.jpg",
- "id":"http://i658.photobucket.com/albums/uu308/R3b3lAp3/Swagger_dog.jpg",
- "image": {
- "url":"http://i658.photobucket.com/albums/uu308/R3b3lAp3/Swagger_dog.jpg",
- "width":637,
- "height":469
- }
- },
- "provider": {
- "url":"http://cubbi.es/",
- "displayName":"Cubbi.es"
- }
- }
- }
-JSON
- @url = activity_streams_photos_path
- end
- it 'allows oauth authentication' do
- token = Factory(:oauth_access_token)
- post @url, @json.merge!(:oauth_token => token.access_token)
- response.should be_success
- end
-
- it 'denies an invalid oauth token' do
- post @url, @json.merge!(:oauth_token => "aoijgosidjg")
- response.status.should == 401
- response.body.should be_empty
- end
-
- it 'allows token authentication' do
- bob.reset_authentication_token!
- post @url, @json.merge!(:auth_token => bob.authentication_token)
- response.should be_success
- end
-
- it 'correctly denies an invalid token' do
- post @url, @json.merge!(:auth_token => "iudsfghpsdifugh")
- response.status.should == 401
- end
- end
-end