diff options
| author | jpl | 2017-02-22 12:24:26 +0100 |
|---|---|---|
| committer | jpl | 2017-02-22 12:24:26 +0100 |
| commit | 90ef6dd7a61c0ff5a4ae35f8019584956877c607 (patch) | |
| tree | 45956f0c3c69868b9697b362fdaf87e62dd8ed05 /spec/views | |
| parent | 61257f790ab486a028ed4cc9fe57097dd6dc0288 (diff) | |
| download | chouette-core-90ef6dd7a61c0ff5a4ae35f8019584956877c607.tar.bz2 | |
Refs #2629: updating route stop_area reactux subform (first pass)
Diffstat (limited to 'spec/views')
| -rw-r--r-- | spec/views/routes/show.html.erb_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/views/routes/show.html.erb_spec.rb b/spec/views/routes/show.html.erb_spec.rb index 327ed1588..9c536f111 100644 --- a/spec/views/routes/show.html.erb_spec.rb +++ b/spec/views/routes/show.html.erb_spec.rb @@ -5,9 +5,11 @@ describe "/routes/show", :type => :view do assign_referential let!(:line) { assign :line, create(:line) } let!(:route) { assign :route, create(:route, :line => line) } + let!(:route_sp) { assign :route_sp, route.stop_points } let!(:map) { assign(:map, double(:to_html => '<div id="map"/>'.html_safe)) } it "should render h1 with the route name" do + # puts params[:sort].present? ? 'toto' : 'tata' render expect(rendered).to have_selector("h1", :text => Regexp.new(line.name)) end |
