public
Description: A Rails plugin to add a should_require_login Shoulda macro to your controller tests.
Homepage:
Clone URL: git://github.com/nbibler/should_require_login.git
100644 8 lines (6 sloc) 0.21 kb
1
2
3
4
5
6
7
8
begin
  require 'shoulda'
rescue LoadError
  raise(LoadError, "Please install the Shoulda plugin from GitHub (http://github.com/thoughtbot/shoulda)")
end
 
Test::Unit::TestCase.send(:extend, ShouldRequireLogin)