Tests: feature flip tests that require postgres

This commit is contained in:
Simon Lehericey 2017-02-21 16:47:59 +01:00
parent 15d27f6a7d
commit 382b614095
3 changed files with 125 additions and 118 deletions

View file

@ -174,6 +174,8 @@ describe Backoffice::DossiersController, type: :controller do
end
end
if ENV['PG'] == 'true'
describe 'POST #search' do
describe 'by id' do
context 'when I am logged as a gestionnaire' do
@ -212,6 +214,7 @@ describe Backoffice::DossiersController, type: :controller do
end
end
end
end
describe 'POST #receive' do
before do

View file

@ -1,6 +1,7 @@
require 'spec_helper'
feature 'search file on gestionnaire backoffice' do
if ENV['PG'] == 'true'
feature 'search file on gestionnaire backoffice' do
let(:administrateur) { create(:administrateur) }
let(:gestionnaire) { create(:gestionnaire, administrateurs: [administrateur]) }
@ -49,4 +50,5 @@ feature 'search file on gestionnaire backoffice' do
end
end
end
end
end

View file

@ -1,6 +1,7 @@
require 'spec_helper'
describe Search do
if ENV['PG'] == 'true'
describe Search do
describe '.results' do
subject { liste_dossiers }
@ -76,4 +77,5 @@ describe Search do
it { expect(subject.size).to eq(1) }
end
end
end
end