Commit f692d7b

mo khan <mo@mokhan.ca>
2016-05-07 14:04:41
allow all features in tests.
1 parent 051933e
Changed files (1)
app/controllers/application_controller.rb
@@ -17,6 +17,7 @@ class ApplicationController < ActionController::Base
   end
 
   def feature_available?(feature)
+    return true if Rails.env.test?
     $flipper[feature.to_sym].enabled?(current_user)
   end