test

Ruby code posted
created at 26 Jul 12:04

Edit | Back
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
159 Bytes in 2 ms with coderay