aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/lines/show.html.slim7
-rw-r--r--spec/features/referential_lines_spec.rb5
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) }