diff options
| -rw-r--r-- | app/views/lines/_line.html.slim | 3 | ||||
| -rw-r--r-- | app/views/lines/show.html.slim | 3 | ||||
| -rw-r--r-- | spec/views/lines/show.html.erb_spec.rb | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/app/views/lines/_line.html.slim b/app/views/lines/_line.html.slim index 07275e043..9c11259e4 100644 --- a/app/views/lines/_line.html.slim +++ b/app/views/lines/_line.html.slim @@ -14,7 +14,8 @@ li .btn-group - - if edit && policy(Chouette::Line).update? + / FIXME #2018 + - if false && edit && policy(Chouette::Line).update? = link_to edit_line_referential_line_path(line.line_referential, line), class: 'btn btn-default btn-sm' do span.fa.fa-pencil diff --git a/app/views/lines/show.html.slim b/app/views/lines/show.html.slim index 636313d54..f4a449432 100644 --- a/app/views/lines/show.html.slim +++ b/app/views/lines/show.html.slim @@ -128,7 +128,8 @@ - if policy(Chouette::Line).create? li = link_to t('lines.actions.new'), new_line_referential_line_path(@line_referential), class: 'add' - - if policy(@line).update? + / FIXME #2018 + - if false && policy(@line).update? li = link_to t('lines.actions.edit'), edit_line_referential_line_path(@line_referential, @line), class: 'edit' - if policy(@line).destroy? diff --git a/spec/views/lines/show.html.erb_spec.rb b/spec/views/lines/show.html.erb_spec.rb index 4b809c268..9f929f432 100644 --- a/spec/views/lines/show.html.erb_spec.rb +++ b/spec/views/lines/show.html.erb_spec.rb @@ -16,8 +16,8 @@ describe "/lines/show", :type => :view do # render # rendered.should have_selector("#map", :class => 'line') # end - - it "should render a link to edit the line" do + # FIXME #2018 + xit "should render a link to edit the line" do render expect(view.content_for(:sidebar)).to have_selector(".actions a[href='#{view.edit_line_referential_line_path(line_referential, line)}']") end |
