Fix test for all Model

This commit is contained in:
Xavier J 2016-11-14 18:36:09 +01:00
parent bd3df8de22
commit a5a95abf06
7 changed files with 11 additions and 8 deletions

View file

@ -1,4 +1,4 @@
require 'rails_helper'
require 'spec_helper'
describe Backoffice::DossiersController, type: :controller do
before do

View file

@ -1,4 +1,4 @@
require 'rails_helper'
require 'spec_helper'
describe FranceConnectInformation, type: :model do
describe 'database columns' do

View file

@ -1,4 +1,4 @@
require 'rails_helper'
require 'spec_helper'
describe Gestionnaire, type: :model do
let(:admin) { create :administrateur }

View file

@ -1,4 +1,4 @@
require 'rails_helper'
require 'spec_helper'
describe Search do
describe '.results' do

View file

@ -1,4 +1,4 @@
require 'rails_helper'
require 'spec_helper'
describe User, type: :model do
describe 'database columns' do

View file

@ -97,6 +97,9 @@ RSpec.configure do |config|
config.infer_spec_type_from_file_location!
config.tty = true
config.include Shoulda::Matchers::ActiveRecord, type: :model
config.include Shoulda::Matchers::ActiveModel, type: :model
config.include Shoulda::Matchers::Independent, type: :model
config.use_transactional_fixtures = false
@ -106,8 +109,8 @@ RSpec.configure do |config|
config.order = 'random'
config.include Devise::TestHelpers, type: :view
config.include Devise::Test::ControllerHelpers
config.include Devise::Test::ControllerHelpers, type: :controller
config.include Devise::Test::ControllerHelpers, type: :view
config.include FactoryGirl::Syntax::Methods

View file

@ -1,4 +1,4 @@
RSpec.configure do |config|
config.include Devise::Test::ControllerHelpers
# config.include Devise::TestHelpers, type: :controller
end