summaryrefslogtreecommitdiff
path: root/spec/models/concerns/featurable_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/concerns/featurable_spec.rb')
-rw-r--r--spec/models/concerns/featurable_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/models/concerns/featurable_spec.rb b/spec/models/concerns/featurable_spec.rb
index 295f3523dd5..453b6f7f29a 100644
--- a/spec/models/concerns/featurable_spec.rb
+++ b/spec/models/concerns/featurable_spec.rb
@@ -30,8 +30,11 @@ RSpec.describe Featurable do
describe '.set_available_features' do
let!(:klass) do
- Class.new do
+ Class.new(ApplicationRecord) do
include Featurable
+
+ self.table_name = 'project_features'
+
set_available_features %i(feature1 feature2)
def feature1_access_level