diff options
| author | Xinhui | 2016-12-07 12:49:19 +0100 | 
|---|---|---|
| committer | Xinhui | 2016-12-07 12:49:23 +0100 | 
| commit | e3e676decb98ef30b1d3f776269304325ba50dd5 (patch) | |
| tree | 83d3494f53c92fc91d009598d81771c0aa0473b5 | |
| parent | c75666918db004b58895ccc0eb77446fa2fe9222 (diff) | |
| download | chouette-core-e3e676decb98ef30b1d3f776269304325ba50dd5.tar.bz2 | |
Fix test
Refs #2174
| -rw-r--r-- | app/views/lines/show.html.slim | 7 | ||||
| -rw-r--r-- | spec/features/referential_lines_spec.rb | 5 | 
2 files changed, 4 insertions, 8 deletions
| diff --git a/app/views/lines/show.html.slim b/app/views/lines/show.html.slim index 6c2c88adf..12c3e10df 100644 --- a/app/views/lines/show.html.slim +++ b/app/views/lines/show.html.slim @@ -25,7 +25,6 @@          = t('lines.index.unset')        - else          = link_to @line.network.name, [@line_referential, @line.network] -omg      p        label = "#{@line.human_attribute_name(:company)} : "        - if @line.company.nil? @@ -113,9 +112,9 @@ omg      /   label = "#{@line.human_attribute_name('comment')} : "      /   = @line.comment -  / .row -  /   #mobility_restricted_suitability.col-md-6 -  /   #flexible_service.col-md-6 +    / .row +    /   #mobility_restricted_suitability.col-md-6 +    /   #flexible_service.col-md-6  - content_for :sidebar do    ul.actions diff --git a/spec/features/referential_lines_spec.rb b/spec/features/referential_lines_spec.rb index 79d30d4b0..7743ad67e 100644 --- a/spec/features/referential_lines_spec.rb +++ b/spec/features/referential_lines_spec.rb @@ -3,10 +3,7 @@ require 'spec_helper'  describe 'ReferentialLines', type: :feature do    login_user - -  let(:referential) { Referential.first } - -  before(:all) { create :referential_metadata, referential: Referential.first } +  let!(:referential_metadata) { create :referential_metadata, referential: referential }    describe 'index' do      before(:each) { visit referential_lines_path(referential) } | 
