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-5.0.3 spec/support/helpers/config_helper.rb
doorkeeper-5.1.0.rc2 spec/support/helpers/config_helper.rb
doorkeeper-5.1.0.rc1 spec/support/helpers/config_helper.rb
doorkeeper-5.0.2 spec/support/helpers/config_helper.rb
doorkeeper-mongodb-5.0.0 spec/support/helpers/config_helper.rb
doorkeeper-5.0.1 spec/support/helpers/config_helper.rb
doorkeeper-mongodb-4.2.0 spec/support/helpers/config_helper.rb
doorkeeper-sequel-2.0.0 spec/support/helpers/config_helper.rb
doorkeeper-sequel-1.5.0 spec/support/helpers/config_helper.rb
doorkeeper-4.4.3 spec/support/helpers/config_helper.rb
doorkeeper-5.0.0 spec/support/helpers/config_helper.rb
doorkeeper-4.4.2 spec/support/helpers/config_helper.rb
doorkeeper-4.4.1 spec/support/helpers/config_helper.rb
doorkeeper-5.0.0.rc2 spec/support/helpers/config_helper.rb
doorkeeper-4.4.0 spec/support/helpers/config_helper.rb
doorkeeper-5.0.0.rc1 spec/support/helpers/config_helper.rb
doorkeeper-mongodb-4.1.0 spec/support/helpers/config_helper.rb
doorkeeper-4.3.2 spec/support/helpers/config_helper.rb
doorkeeper-4.3.1 spec/support/helpers/config_helper.rb
doorkeeper-4.3.0 spec/support/helpers/config_helper.rb