diaspora/spec/helpers/stream_helper_spec.rb
2012-01-11 02:26:12 -08:00

19 lines
498 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 StreamHelper do
before do
@post = Factory(:status_message)
end
describe '#next_page_path' do
it 'works for apps page' do
stub!(:controller).and_return(AppsController.new)
@posts = [Factory(:activity_streams_photo)]
next_page_path.should include '/apps/1'
end
end
end