diff options
| author | Alban Peignier | 2012-05-29 08:57:01 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2012-05-29 08:57:01 +0200 | 
| commit | 244de985c6c00b6385e9af47f9dec08de1eec6c5 (patch) | |
| tree | ba555108ea422d3e981b9b1a98c215d38a8cc831 /spec | |
| parent | ae65f9661b288b367d5f1f3e5fd8797852127110 (diff) | |
| download | chouette-core-244de985c6c00b6385e9af47f9dec08de1eec6c5.tar.bz2 | |
Include html_safe an ready? in ApplicationMap#to_html
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/views/lines/show.html.erb_spec.rb | 2 | ||||
| -rw-r--r-- | spec/views/networks/show.html.erb_spec.rb | 3 | 
2 files changed, 3 insertions, 2 deletions
diff --git a/spec/views/lines/show.html.erb_spec.rb b/spec/views/lines/show.html.erb_spec.rb index 42261005a..f77722672 100644 --- a/spec/views/lines/show.html.erb_spec.rb +++ b/spec/views/lines/show.html.erb_spec.rb @@ -5,7 +5,7 @@ describe "/lines/show" do    let!(:referential) { assign :referential, create(:referential) }    let!(:line) { assign :line, create(:line) }    let!(:routes) { assign :routes, Array.new(2) { create(:route, :line => line) }.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 line name" do      render diff --git a/spec/views/networks/show.html.erb_spec.rb b/spec/views/networks/show.html.erb_spec.rb index 9c05fe4aa..9c4f34f96 100644 --- a/spec/views/networks/show.html.erb_spec.rb +++ b/spec/views/networks/show.html.erb_spec.rb @@ -4,7 +4,7 @@ describe "/networks/show" do    let!(:referential) { assign(:referential, create(:referential)) }    let!(:network) { assign(:network, create(:network)) } -  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 network name" do      render @@ -13,6 +13,7 @@ describe "/networks/show" do    it "should display a map with class 'network'" do      render +    puts rendered      rendered.should have_selector("#map")    end  | 
