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
|
describe Backoffice::DossiersController, type: :controller do
|
||||||
before do
|
before do
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'rails_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe FranceConnectInformation, type: :model do
|
describe FranceConnectInformation, type: :model do
|
||||||
describe 'database columns' do
|
describe 'database columns' do
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'rails_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe Gestionnaire, type: :model do
|
describe Gestionnaire, type: :model do
|
||||||
let(:admin) { create :administrateur }
|
let(:admin) { create :administrateur }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'rails_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe Search do
|
describe Search do
|
||||||
describe '.results' do
|
describe '.results' do
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'rails_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe User, type: :model do
|
describe User, type: :model do
|
||||||
describe 'database columns' do
|
describe 'database columns' do
|
||||||
|
|
|
@ -97,6 +97,9 @@ RSpec.configure do |config|
|
||||||
config.infer_spec_type_from_file_location!
|
config.infer_spec_type_from_file_location!
|
||||||
config.tty = true
|
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
|
config.use_transactional_fixtures = false
|
||||||
|
|
||||||
|
@ -106,8 +109,8 @@ RSpec.configure do |config|
|
||||||
|
|
||||||
config.order = 'random'
|
config.order = 'random'
|
||||||
|
|
||||||
config.include Devise::TestHelpers, type: :view
|
config.include Devise::Test::ControllerHelpers, type: :controller
|
||||||
config.include Devise::Test::ControllerHelpers
|
config.include Devise::Test::ControllerHelpers, type: :view
|
||||||
|
|
||||||
config.include FactoryGirl::Syntax::Methods
|
config.include FactoryGirl::Syntax::Methods
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.include Devise::Test::ControllerHelpers
|
# config.include Devise::TestHelpers, type: :controller
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue