Finish port to fabrication
[shapado:piglops-shapado.git] / spec / controllers / activities_controller_spec.rb
1 require 'spec_helper'
2
3 describe ActivitiesController do
4   include Devise::TestHelpers
5
6   before(:each) do
7     @group = stub_group
8     @user = Fabricate(:user)
9     @group.add_member(@user, "owner")
10     stub_authentication @user
11   end
12
13   describe "GET index" do
14     it "assigns all activities as @activities" do
15       activities = @group.activities.order(:created_at.desc).page
16       get :index
17       assigns(:activities).should eq(activities)
18     end
19   end
20 end