Sha256: e45508b3d9650a3db914c9ea6700cd0a2204f5dc4997d8c18a777afd980d8a99
Contents?: true
Size: 751 Bytes
Versions: 15
Compression:
Stored size: 751 Bytes
Contents
require 'spec_helper' describe Pugin::Feature::SimpleFeature do before :example do Pugin::Feature::SimpleFeature.disable end after :example do Pugin::Feature::SimpleFeature.disable end it_behaves_like 'a simple pugin feature' context 'when enabling a subclass' do it 'only enables that sub class' do expect(Pugin::Feature::SimpleFeature.enabled?).to equal(false) expect(Pugin::Feature::SimpleFeature.enabled?).to equal(false) Pugin::Feature::SimpleFeature.enable expect(Pugin::Feature::SimpleFeature.enabled?).to equal(true) Pugin::Feature::SimpleFeature.disable expect(Pugin::Feature::SimpleFeature.enabled?).to equal(false) end end end
Version data entries
15 entries across 15 versions & 1 rubygems