Sha256: 3cdb7a1a8ced7dceba08078a3a8d97ee8c535ab05fbecffcedac6f211cb5c14c

Contents?: true

Size: 299 Bytes

Versions: 8

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true

module ConfigHelper
  def config_is_set(setting, value = nil, &block)
    setting_ivar = "@#{setting}"
    value = block_given? ? block : value
    Doorkeeper.config.instance_variable_set(setting_ivar, value)
  end
end

RSpec.configuration.send :include, ConfigHelper

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
doorkeeper-mongodb-5.3.0 spec/support/helpers/config_helper.rb
doorkeeper-mongodb-5.2.3 spec/support/helpers/config_helper.rb
doorkeeper-sequel-2.4.0 spec/support/helpers/config_helper.rb
doorkeeper-mongodb-5.2.2 spec/support/helpers/config_helper.rb
doorkeeper-sequel-2.3.0 spec/support/helpers/config_helper.rb
doorkeeper-5.4.0.rc1 spec/support/helpers/config_helper.rb
doorkeeper-mongodb-5.2.1 spec/support/helpers/config_helper.rb
doorkeeper-mongodb-5.2.0 spec/support/helpers/config_helper.rb