Fix test for all Model
This commit is contained in:
parent
bd3df8de22
commit
a5a95abf06
7 changed files with 11 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
require 'rails_helper'
|
||||
require 'spec_helper'
|
||||
|
||||
describe Backoffice::DossiersController, type: :controller do
|
||||
before do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'rails_helper'
|
||||
require 'spec_helper'
|
||||
|
||||
describe FranceConnectInformation, type: :model do
|
||||
describe 'database columns' do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'rails_helper'
|
||||
require 'spec_helper'
|
||||
|
||||
describe Gestionnaire, type: :model do
|
||||
let(:admin) { create :administrateur }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'rails_helper'
|
||||
require 'spec_helper'
|
||||
|
||||
describe Search do
|
||||
describe '.results' do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'rails_helper'
|
||||
require 'spec_helper'
|
||||
|
||||
describe User, type: :model do
|
||||
describe 'database columns' do
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
RSpec.configure do |config|
|
||||
config.include Devise::Test::ControllerHelpers
|
||||
# config.include Devise::TestHelpers, type: :controller
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue