Sha256: b6c95994661ad1101f8e866d64f00ec568013910b75bef8cc0394e4f731c1899

Contents?: true

Size: 275 Bytes

Versions: 45

Compression:

Stored size: 275 Bytes

Contents

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

RSpec.configuration.send :include, ConfigHelper

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
doorkeeper-sequel-1.4.0 spec/support/helpers/config_helper.rb
doorkeeper-mongodb-4.0.1 spec/support/helpers/config_helper.rb
doorkeeper-mongodb-4.0.0 spec/support/helpers/config_helper.rb
doorkeeper-sequel-1.3.1 spec/support/helpers/config_helper.rb
doorkeeper-sequel-1.3.0 spec/support/helpers/config_helper.rb
doorkeeper-sequel-1.2.3 spec/support/helpers/config_helper.rb
doorkeeper-sequel-1.2.2 spec/support/helpers/config_helper.rb
doorkeeper-4.2.6 spec/support/helpers/config_helper.rb
doorkeeper-4.2.5 spec/support/helpers/config_helper.rb
doorkeeper-sequel-1.2.1 spec/support/helpers/config_helper.rb
doorkeeper-4.2.0 spec/support/helpers/config_helper.rb
doorkeeper-4.1.0 spec/support/helpers/config_helper.rb
doorkeeper-4.0.0 spec/support/helpers/config_helper.rb
doorkeeper-4.0.0.rc4 spec/support/helpers/config_helper.rb
doorkeeper-4.0.0.rc3 spec/support/helpers/config_helper.rb
doorkeeper-4.0.0.rc2 spec/support/helpers/config_helper.rb
doorkeeper-4.0.0.rc1 spec/support/helpers/config_helper.rb
doorkeeper-3.1.0 spec/support/helpers/config_helper.rb
doorkeeper-3.0.1 spec/support/helpers/config_helper.rb
doorkeeper-2.2.2 spec/support/helpers/config_helper.rb