diff options
| author | Alban Peignier | 2012-05-29 17:08:17 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2012-05-29 17:08:17 +0200 | 
| commit | ee0f3849cb6a2278783aabb166fb5c2661cdb400 (patch) | |
| tree | 9b16a42dd4ab9a0cda51e7a5aa6c84dbe3471bca /spec/views | |
| parent | 5266239f66247c9f5a391ab6569a8fb8021279d8 (diff) | |
| download | chouette-core-ee0f3849cb6a2278783aabb166fb5c2661cdb400.tar.bz2 | |
Removes explicit ApplicationMap#html_safe
Diffstat (limited to 'spec/views')
| -rw-r--r-- | spec/views/connection_links/show.html.erb_spec.rb | 2 | ||||
| -rw-r--r-- | spec/views/routes/show.html.erb_spec.rb | 2 | ||||
| -rw-r--r-- | spec/views/stop_areas/edit.html.erb_spec.rb | 2 | ||||
| -rw-r--r-- | spec/views/stop_areas/show.html.erb_spec.rb | 2 | 
4 files changed, 4 insertions, 4 deletions
diff --git a/spec/views/connection_links/show.html.erb_spec.rb b/spec/views/connection_links/show.html.erb_spec.rb index 8a03f5339..80d3adfb6 100644 --- a/spec/views/connection_links/show.html.erb_spec.rb +++ b/spec/views/connection_links/show.html.erb_spec.rb @@ -4,7 +4,7 @@ describe "/connection_links/show" do    let!(:referential) { assign(:referential, create(:referential)) }    let!(:connection_link) { assign(:connection_link, create(:connection_link)) } -  let!(:map) { assign(:map, mock(:to_html => '<div id="map"/>')) } +  let!(:map) { assign(:map, mock(:to_html => '<div id="map"/>'.html_safe)) }    it "should render h2 with the connection_link name" do      render diff --git a/spec/views/routes/show.html.erb_spec.rb b/spec/views/routes/show.html.erb_spec.rb index 5fa7485b7..2f39adb9a 100644 --- a/spec/views/routes/show.html.erb_spec.rb +++ b/spec/views/routes/show.html.erb_spec.rb @@ -6,7 +6,7 @@ describe "/routes/show" do    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"/>')) } +  let!(:map) { assign(:map, mock(:to_html => '<div id="map"/>'.html_safe)) }    it "should render h2 with the route name" do      render diff --git a/spec/views/stop_areas/edit.html.erb_spec.rb b/spec/views/stop_areas/edit.html.erb_spec.rb index c3b89918d..17e9ca104 100644 --- a/spec/views/stop_areas/edit.html.erb_spec.rb +++ b/spec/views/stop_areas/edit.html.erb_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper'  describe "/stop_areas/edit" do    let!(:referential) { assign(:referential, create(:referential)) }    let!(:stop_area) { assign(:stop_area, create(:stop_area)) } -  let!(:map) { assign(:map, mock(:to_html => '<div id="map"/>')) } +  let!(:map) { assign(:map, mock(:to_html => '<div id="map"/>'.html_safe)) }    describe "test" do      it "should render h2 with the group name" do diff --git a/spec/views/stop_areas/show.html.erb_spec.rb b/spec/views/stop_areas/show.html.erb_spec.rb index 443a37232..b4be2c5e0 100644 --- a/spec/views/stop_areas/show.html.erb_spec.rb +++ b/spec/views/stop_areas/show.html.erb_spec.rb @@ -4,7 +4,7 @@ describe "/stop_areas/show" do    let!(:referential) { assign :referential, create(:referential) }    let!(:stop_area) { assign :stop_area, create(:stop_area) } -  let!(:map) { assign(:map, mock(:to_html => '<div id="map"/>')) } +  let!(:map) { assign(:map, mock(:to_html => '<div id="map"/>'.html_safe)) }    it "should render h2 with the stop_area name" do      render  | 
