Skip to content

Commit

Permalink
Don't generate secret token in test mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Jan 7, 2014
1 parent 67113f5 commit 71a99f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/secret_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#
# We should setup a secret token if FFCRM is running in application mode but NOT in engine mode.
# This functionality has been extracted to lib so it can be tested.
if FatFreeCRM.application?
if FatFreeCRM.application? and !Rails.env.test?
require 'fat_free_crm/secret_token_generator'
FatFreeCRM::SecretTokenGenerator.setup!
end

0 comments on commit 71a99f1

Please sign in to comment.