diff options
| author | Bruno Perles | 2015-12-16 10:02:29 +0100 | 
|---|---|---|
| committer | Bruno Perles | 2015-12-16 10:02:29 +0100 | 
| commit | 013f4fa8fe9bb08f3ed1d15f905ca2a8437d6aa7 (patch) | |
| tree | 426b9c17167c10547da2222517cbd4433ae554fe /spec/controllers/routes_controller_spec.rb | |
| parent | 2590606c5912a85b8cb1aaa40c57dab67d75e7f7 (diff) | |
| download | chouette-core-013f4fa8fe9bb08f3ed1d15f905ca2a8437d6aa7.tar.bz2 | |
Add route_sections for traces
Diffstat (limited to 'spec/controllers/routes_controller_spec.rb')
| -rw-r--r-- | spec/controllers/routes_controller_spec.rb | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/spec/controllers/routes_controller_spec.rb b/spec/controllers/routes_controller_spec.rb index a813056c3..de6d16c8b 100644 --- a/spec/controllers/routes_controller_spec.rb +++ b/spec/controllers/routes_controller_spec.rb @@ -37,7 +37,7 @@ describe RoutesController, :type => :controller do      it_behaves_like "line and referential linked"      it_behaves_like "redirected to referential_line_path(referential,line)"    end -   +    describe "POST /create" do      before(:each) do        post :create, :line_id => route.line_id, @@ -48,7 +48,7 @@ describe RoutesController, :type => :controller do      it_behaves_like "line and referential linked"      it_behaves_like "redirected to referential_line_path(referential,line)"    end -   +    describe "PUT /update" do      before(:each) do        put :update, :id => route.id, :line_id => route.line_id, @@ -59,10 +59,10 @@ describe RoutesController, :type => :controller do      it_behaves_like "route, line and referential linked"      it_behaves_like "redirected to referential_line_path(referential,line)"    end -   +    describe "GET /show" do      before(:each) do -      get :show, :id => route.id,  +      get :show, :id => route.id,            :line_id => route.line_id,            :referential_id => referential.id      end @@ -78,6 +78,6 @@ describe RoutesController, :type => :controller do      #  expect(assigns[:stop_points]).to eq(route.stop_points.paginate(:page => nil))      #end    end -   +  end | 
