search for: invalidactionerror

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

2007 Feb 23
0
Using rspec_on_rails without a test
...stubbed requests, response # and other things (via RSpec''s inherit mechanism). These extensions are # tightly coupled to Test::Unit in Rails, which is why you''re seeing it here. module Spec module Rails class ActiveRecord::Base def self.connection raise InvalidActionError, "You cannot access the database", caller end end end end class InvalidActionError < StandardError end The test database must still be set up in config/database.yml, and I believe it must also exist Should I also post this to the rspec rubyforge site? Best, Sco...