Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/controllers/wrangling_guidelines_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def index
# GET /wrangling_guidelines/1
def show
@wrangling_guideline = WranglingGuideline.find(params[:id])
@page_subtitle = @wrangling_guideline.title
end

# GET /wrangling_guidelines/new
Expand Down
1 change: 1 addition & 0 deletions features/tags_and_wrangling/wrangling_guidelines.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Feature: Wrangling Guidelines
When I go to the wrangling_guidelines page
And I follow "Intro and General Concepts"
Then I should see "This series of documents (Wrangling Guidelines) are intended to help tag wranglers remain consistent as they go about the business of wrangling tags by providing a set of formatting guidelines." within ".userstuff"
And the page title should include "Intro and General Concepts"

Scenario: Edit Wrangling Guideline

Expand Down
5 changes: 5 additions & 0 deletions spec/controllers/wrangling_guidelines_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
expect(response).to render_template("show")
expect(assigns(:wrangling_guideline)).to eq(guideline)
end

it "assigns page subtitle using guideline title" do
get :show, params: { id: guideline.id }
expect(assigns[:page_subtitle]).to eq(guideline.title)
end
end

describe "GET #new" do
Expand Down
Loading