Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 68389fd

Browse files
committedOct 24, 2014
Add Slug to Protip URLs for SEO
1 parent 558f24b commit 68389fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎spec/controllers/protips_controller_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def valid_session
5252
describe "GET show using public_id" do
5353
it "redirects to GET show using slug" do
5454
protip = Protip.create! valid_attributes
55+
protip.save
5556
get :show, {id: protip.to_param}, valid_session
5657
expect(response).to redirect_to protip_path(protip.slug)
5758
end

0 commit comments

Comments
 (0)
Failed to load comments.