File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2626 )
2727
2828 # this is a hack to make the TOC work in the absence of a real site
29- Site . should_receive ( :named ) . and_return ( mock ( dir : "/tmp" ) )
29+ Site . should_receive ( :named ) . and_return ( double ( dir : "/tmp" ) )
3030
3131 html_doc = Nokogiri . parse ( page . to_html )
3232 main_html = html_doc . css ( "main" ) . first . serialize ( :save_with => 0 ) . chomp
Original file line number Diff line number Diff line change 1818 )
1919
2020 # this is a hack to make the TOC work in the absence of a real site
21- Site . should_receive ( :named ) . and_return ( mock ( dir : "/tmp" ) )
21+ Site . should_receive ( :named ) . and_return ( double ( dir : "/tmp" ) )
2222
2323 html_doc = Nokogiri . parse ( page . to_html )
2424 main_html = html_doc . css ( "main" ) . first . serialize ( :save_with => 0 ) . chomp
You can’t perform that action at this time.
0 commit comments