25 lines
864 B
Ruby
25 lines
864 B
Ruby
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
# licensed under the Affero General Public License version 3 or later. See
|
|
# the COPYRIGHT file.
|
|
|
|
require 'spec_helper'
|
|
|
|
describe MultisController do
|
|
describe '#index' do
|
|
before do
|
|
sign_in :user, alice
|
|
end
|
|
|
|
it 'generates the multi_stream_json fixture', :fixture => true do
|
|
alice.post(:status_message, :text => "hella infos yo!", :to => alice.aspects.first.id)
|
|
alice.post(:reshare, :root_guid => Factory(:status_message, :public => true).guid, :to => 'all')
|
|
post_to_be_liked = alice.post(:status_message, :text => "you're gonna love this.'", :to => alice.aspects.first.id)
|
|
|
|
alice.like(1, :target => post_to_be_liked)
|
|
|
|
get :index, :format => :json
|
|
response.should be_success
|
|
save_fixture(response.body, "multi_stream_json")
|
|
end
|
|
end
|
|
end
|