search for: must_raise

Displaying 1 result from an estimated 1 matches for "must_raise".

2012 Mar 13
4
minitest validations - is there a cleaner way?
...my testing to use minitest by following the following railscast plus i added miniskirt for Factories. http://railscasts.com/episodes/327-minitest-with-rails everything works well, but there has to be a cleaner way of testing failed validations. would i be better off using something besides "must_raise"? if not, is there a way to make a helper function or something to clean this up so it is more readable? ----------------------------------------------------------- require "minitest_helper" describe User do it "rejects a bad password in validation" do user = Fa...