Skip to content

Instantly share code, notes, and snippets.

@shishi
Last active August 29, 2015 13:57
Show Gist options
  • Save shishi/9545920 to your computer and use it in GitHub Desktop.
Save shishi/9545920 to your computer and use it in GitHub Desktop.
before do
@validators = []
User.validators.each { |v| @validators << v.class }
end
it { @validators.should include HogeValidator }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment