1 2 3 4 5
def test_should_generate_permalink post = Post.new(:title => "title with åäö") post.valid? assert_equal "title-with-aao", post.permalink end