-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix carnegie page route helpers (DLC-1056)
- Loading branch information
Showing
3 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div id="about_the_project" class="row hide-xs"> | ||
<p class="lead"> | ||
Carnegie Corporation of New York celebrated its centennial in 2011. <a class="continued" href="<%=carnegie_about_path()%>#about_the_centennial">Read more »</a> | ||
Carnegie Corporation of New York celebrated its centennial in 2011. <a class="continued" href="<%= carnegie_page_path('about', anchor: 'about_the_centennial')%>">Read more »</a> | ||
</p> | ||
</div> | ||
<%= render template: '/shared/index' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'rails_helper' | ||
|
||
describe CarnegieController, type: :routing do | ||
describe "routing" do | ||
it "routes to about page" do | ||
expect(carnegie_page_path('about', anchor: 'about_the_centennial')).to eql("/carnegie/about#about_the_centennial") | ||
end | ||
end | ||
end |