Sha256: 8d734b2eebbaaa72e503771358fd75b7e95fd2bef4e16f30c75d270a327f555e

Contents?: true

Size: 213 Bytes

Versions: 3

Compression:

Stored size: 213 Bytes

Contents

module Support
  module FeatureHelpers
    def with_features(enabled, &block)
      originals = Emerson.features
      Emerson.features = enabled

      yield

      Emerson.features = originals
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
emerson-0.1.0.pre.4 spec/support/helpers/feature_helpers.rb
emerson-0.1.0.pre.3 spec/support/helpers/feature_helpers.rb
emerson-0.1.0.pre.2 spec/support/helpers/feature_helpers.rb