If you want to test that that an exception is raised and then test the message that is easily accomplished with assert_raise:
If you’re working on an older Rails project (pre Rails 2.1) you will be missing config.gem for Gem dependency management. If you have multiple versions of gems on the machine you can still load a specific version by using rubygems:
Rails doesn’t check authenticity tokens on GET requests and doesn’t
ever check them in the functional tests. More info on Rails
authenticity token
here.
Comments
comments powered by Disqus