Skip to content

Instantly share code, notes, and snippets.

@bakineggs
Created October 12, 2008 23:22
Show Gist options
  • Select an option

  • Save bakineggs/16480 to your computer and use it in GitHub Desktop.

Select an option

Save bakineggs/16480 to your computer and use it in GitHub Desktop.
in validations_i18n_test.rb:
def test_validates_length_of_counts_utf8_characters
Topic.validates_length_of :title, :is => 7
@topic.title = 'El Niño'
@topic.errors.expects(:generate_message).never
@topic.errors.expects(:generate_message).never
@topic.valid?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment