test/functional/account_controller_test.rb in parlement-0.3 vs test/functional/account_controller_test.rb in parlement-0.4
- old
+ new
@@ -8,12 +8,12 @@
# Raise errors beyond the default web-based presentation
class AccountController; def rescue_action(e) raise e end; end
class AccountControllerTest < Test::Unit::TestCase
- #fixtures :people, LoginEngine.config(:user_table).to_sym
- fixtures :people, :users, :subscribers
+ fixtures :people, LoginEngine.config(:user_table).to_sym, :subscribers
+ #fixtures :people, :users
def setup
LoginEngine::CONFIG[:salt] = "test-salt"
@controller = AccountController.new
@@ -133,9 +133,10 @@
end
def test_email_protect
LoginEngine::CONFIG[:use_email_notification] = true
+
ActionMailer::Base.deliveries = []
#@request.session['return-to'] = "/bogus/location"