spec/lib/pugin/feature/simple_feature_spec.rb in pugin-1.9.3 vs spec/lib/pugin/feature/simple_feature_spec.rb in pugin-1.9.4
- old
+ new
@@ -14,23 +14,15 @@
context 'when enabling a subclass' do
it 'only enables that sub class' do
expect(Pugin::Feature::SimpleFeature.enabled?).to equal(false)
- Pugin::Feature::TopNavigation.enable
- expect(Pugin::Feature::TopNavigation.enabled?).to equal(true)
expect(Pugin::Feature::SimpleFeature.enabled?).to equal(false)
- Pugin::Feature::TopNavigation.disable
- expect(Pugin::Feature::TopNavigation.enabled?).to equal(false)
-
Pugin::Feature::SimpleFeature.enable
- expect(Pugin::Feature::TopNavigation.enabled?).to equal(false)
expect(Pugin::Feature::SimpleFeature.enabled?).to equal(true)
- Pugin::Feature::TopNavigation.enable
Pugin::Feature::SimpleFeature.disable
- expect(Pugin::Feature::TopNavigation.enabled?).to equal(true)
expect(Pugin::Feature::SimpleFeature.enabled?).to equal(false)
end
end
end