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

Version Path
pugin-1.10.10 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.9 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.8 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.7 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.6 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.5 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.4 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.3 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.2 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.1 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.10.0 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.9.7 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.9.6 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.9.5 spec/lib/pugin/feature/simple_feature_spec.rb
pugin-1.9.4 spec/lib/pugin/feature/simple_feature_spec.rb