blob: 95fc596fd240fd98e2c02edb1ac0356730cc698e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  | 
# -*- coding: utf-8 -*-
require 'spec_helper'
describe 'ReferentialLines', type: :feature do
  login_user
  let!(:referential_metadata) { create :referential_metadata, referential: referential }
  describe 'show' do
    it 'displays referential line' do
      visit referential_line_path(referential, referential.lines.first)
      expect(page).to have_content(referential.lines.first.name)
    end
    it 'displays referential line' do
      visit referential_line_path(referential, referential.lines.first, sort: "stop_points")
      expect(page).to have_content(referential.lines.first.name)
    end
  end
end
  |