Fix features tests

This commit is contained in:
Xavier J 2016-11-15 11:01:58 +01:00
parent 90cfd3eccb
commit b3b03a2449
5 changed files with 5 additions and 7 deletions

View file

@ -15,7 +15,7 @@ gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library # Use jquery as the JavaScript library
gem 'jquery-rails' gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks' gem 'turbolinks', '~> 2.5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0' gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api. # bundle exec rake doc:rails generates the API under doc/api.

View file

@ -539,9 +539,8 @@ GEM
tilt (2.0.5) tilt (2.0.5)
timecop (0.8.1) timecop (0.8.1)
trollop (2.1.2) trollop (2.1.2)
turbolinks (5.0.1) turbolinks (2.5.3)
turbolinks-source (~> 5) coffee-rails
turbolinks-source (5.0.0)
tzinfo (1.2.2) tzinfo (1.2.2)
thread_safe (~> 0.1) thread_safe (~> 0.1)
uglifier (3.0.3) uglifier (3.0.3)
@ -651,7 +650,7 @@ DEPENDENCIES
spring-commands-rspec spring-commands-rspec
therubyracer therubyracer
timecop timecop
turbolinks turbolinks (~> 2.5)
uglifier (>= 1.3.0) uglifier (>= 1.3.0)
unicorn unicorn
vcr vcr

View file

@ -16,7 +16,7 @@ feature 'when gestionnaire come to /backoffice and is not authenticated' do
page.click_on 'Se connecter' page.click_on 'Se connecter'
end end
scenario 'he stay on the same page with an error' do scenario 'he stay on the same page with an error' do
expect(page).to have_content('email ou mot de passe incorrect.') expect(page).to have_content('Email ou mot de passe incorrect.')
end end
end end
context 'when user enter good credentials' do context 'when user enter good credentials' do

View file

@ -17,7 +17,6 @@ describe Procedure do
it { is_expected.to have_db_column(:description) } it { is_expected.to have_db_column(:description) }
it { is_expected.to have_db_column(:organisation) } it { is_expected.to have_db_column(:organisation) }
it { is_expected.to have_db_column(:direction) } it { is_expected.to have_db_column(:direction) }
it { is_expected.to have_db_column(:test) }
it { is_expected.to have_db_column(:euro_flag) } it { is_expected.to have_db_column(:euro_flag) }
it { is_expected.to have_db_column(:logo) } it { is_expected.to have_db_column(:logo) }
it { is_expected.to have_db_column(:logo_secure_token) } it { is_expected.to have_db_column(:logo_secure_token) }