Merge pull request #817 from microweb10/friendly_urls

Friendly urls
This commit is contained in:
Raimond Garcia
2016-03-02 17:51:00 +01:00
10 changed files with 107 additions and 0 deletions

View File

@@ -692,4 +692,10 @@ describe Debate do
end
end
describe "#to_param" do
it "should return a friendly url" do
expect(debate.to_param).to eq "#{debate.id} #{debate.title}".parameterize
end
end
end