summaryrefslogtreecommitdiff
path: root/spec/models/plan_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/plan_spec.rb')
-rw-r--r--spec/models/plan_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/models/plan_spec.rb b/spec/models/plan_spec.rb
new file mode 100644
index 00000000000..3f3b8046232
--- /dev/null
+++ b/spec/models/plan_spec.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe Plan do
+ describe '#default?' do
+ subject { plan.default? }
+
+ Plan.default_plans.each do |plan|
+ context "when '#{plan}'" do
+ let(:plan) { build("#{plan}_plan".to_sym) }
+
+ it { is_expected.to be_truthy }
+ end
+ end
+ end
+end