remove unnecessary cleanup before running the specs

pull/763/head
Martin Linkhorst 11 years ago
parent 7c5b517d3c
commit c95aee4195
  1. 3
      spec/controllers/news/comments_controller_spec.rb
  2. 4
      spec/controllers/news_controller_spec.rb
  3. 5
      spec/models/news_spec.rb

@ -35,9 +35,6 @@ describe News::CommentsController do
let(:news) { FactoryGirl.create(:news) }
before do
User.delete_all
News.delete_all
User.stubs(:current).returns user
end

@ -38,10 +38,6 @@ describe NewsController do
let(:news) { FactoryGirl.create(:news) }
before do
User.delete_all
News.delete_all
Project.delete_all
User.stubs(:current).returns user
end

@ -32,11 +32,6 @@ require File.expand_path('../../support/shared/become_member', __FILE__)
describe News do
include BecomeMember
before do
Project.delete_all
News.delete_all
end
let(:project) {
project = FactoryGirl.create(:project)
project.enabled_modules << EnabledModule.new(name: 'news')

Loading…
Cancel
Save