Commit fb9d3a38 authored by Bruno Michel's avatar Bruno Michel
Browse files

Clean specs

parent 5639e126
--format Fuubar
--color
--drb
......@@ -69,7 +69,6 @@ end
group :test do
gem "database_cleaner", "~>1.2"
gem "factory_girl_rails", "~>1.6"
gem "faker", "~>0.9"
gem "fuubar", "~>1.0"
gem "capybara", "~>2.2"
end
......
......@@ -120,8 +120,6 @@ GEM
factory_girl_rails (1.7.0)
factory_girl (~> 2.6.0)
railties (>= 3.0.0)
faker (0.9.5)
i18n (~> 0.4)
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
ffi (1.0.11)
......@@ -346,7 +344,6 @@ DEPENDENCIES
elasticsearch-model (~> 0.1)
elasticsearch-transport (~> 1.0)
factory_girl_rails (~> 1.6)
faker (~> 0.9)
french_rails (~> 0.3)
friendly_id (~> 5.0)
fuubar (~> 1.0)
......
......@@ -34,10 +34,6 @@
require 'spec_helper'
describe Account do
before(:each) do
Account.delete_all
end
it "is valid" do
FactoryGirl.build(:normal_account).should be_valid
end
......
......@@ -22,10 +22,6 @@
require 'spec_helper'
describe News do
before(:each) do
Paragraph.delete_all
end
context "when created in redaction" do
let(:news) { News.create_for_redaction(FactoryGirl.create :writer_account) }
......
......@@ -3,18 +3,12 @@ ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'capybara/rspec'
require 'factory_girl'
require 'database_cleaner'
RSpec.configure do |c|
c.mock_with :rspec
c.filter_run focus: true
c.run_all_when_everything_filtered = true
c.include Devise::TestHelpers, type: :controller
c.before(:suite) do
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
end
c.before(:each) do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment