[#890] order dossier for user by last update

This commit is contained in:
Tanguy PATTE 2015-09-25 10:26:50 +02:00
parent 170655a72b
commit 92d5fb4cf3
3 changed files with 9 additions and 1 deletions

View file

@ -3,6 +3,7 @@ require 'spec_helper'
describe Users::DossiersController, type: :controller do
let(:user) { create(:user) }
describe '.index' do
let!(:dossier) { create(:dossier, :with_entreprise, :with_procedure, user: user) }
subject { get :index }
context 'when user is not logged in' do
it { is_expected.to redirect_to('/users/sign_in') }