aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2015-02-20 10:53:19 +0100
committerLuc Donnet2015-02-20 10:53:19 +0100
commit6f06fbc5b4742f940b91b9e0900c516ad9fc4206 (patch)
tree2e6179d662d39e92b5681c6d83511b50d3dc6a78
parente72becb6f659996d152093a62fcd7f0bd4c5cd28 (diff)
downloadchouette-core-6f06fbc5b4742f940b91b9e0900c516ad9fc4206.tar.bz2
Fix spec for route controller datas
-rw-r--r--spec/controllers/routes_controller_spec.rb4
-rw-r--r--spec/views/routes/show.html.erb_spec.rb1
2 files changed, 0 insertions, 5 deletions
diff --git a/spec/controllers/routes_controller_spec.rb b/spec/controllers/routes_controller_spec.rb
index cfadc382a..39585f649 100644
--- a/spec/controllers/routes_controller_spec.rb
+++ b/spec/controllers/routes_controller_spec.rb
@@ -72,10 +72,6 @@ describe RoutesController do
assigns[:map].route.should == route
end
- it "assigns route.stop_points.paginate(:page => nil) as @stop_points" do
- assigns[:stop_points].should == route.stop_points.paginate(:page => nil)
- end
-
end
end
diff --git a/spec/views/routes/show.html.erb_spec.rb b/spec/views/routes/show.html.erb_spec.rb
index 983b63fcb..e7f9d011a 100644
--- a/spec/views/routes/show.html.erb_spec.rb
+++ b/spec/views/routes/show.html.erb_spec.rb
@@ -5,7 +5,6 @@ describe "/routes/show" do
assign_referential
let!(:line) { assign :line, create(:line) }
let!(:route) { assign :route, create(:route, :line => line) }
- let!(:stop_points) { assign :stop_points, Array.new(2) { create(:stop_point) }.paginate }
let!(:map) { assign(:map, mock(:to_html => '<div id="map"/>'.html_safe)) }
it "should render h2 with the route name" do