Commit 24196ed6 authored by Alex Kalderimis's avatar Alex Kalderimis

Use EEU_FEATURES during feature stubbing

This saves work during stubbing, and is just a lot clearer.
parent 3824edb1
......@@ -15,8 +15,8 @@ module EE
prepended do
def stub_licensed_features(features)
existing_features = License::FEATURES_BY_PLAN.values.flatten.map(&:to_sym)
missing_features = features.keys.map(&:to_sym) - existing_features
# EEU_FEATURES contains all the features we know about
missing_features = features.keys.map(&:to_sym) - License::EEU_FEATURES
if missing_features.any?
subject = missing_features.join(', ')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment