pull/575/head
Hagen Schink 11 years ago
parent 7df4cc0934
commit 00f8127ef9
  1. 19
      spec/controllers/activities_controller_spec.rb

@ -64,5 +64,24 @@ describe ActivitiesController do
response.should render_template 'common/error'
end
end
describe :atom_feed do
let(:user) { FactoryGirl.create(:user) }
let(:project) { FactoryGirl.create(:project) }
let!(:wp_1) { FactoryGirl.create(:work_package,
project: project,
author: user) }
let!(:wp_2) { FactoryGirl.create(:work_package,
project: project,
author: user) }
let(:params) { { project_id: project.id,
format: :atom } }
before { get :index, params }
it { expect(assigns(:items).count).to eq(2) }
it { expect(response).to render_template("common/feed") }
end
end
end

Loading…
Cancel
Save