Sha256: 386b5885fa975c06fa7189c2f05a223fa8097e88222e5adf1a9d29ce6864bb1c

Contents?: true

Size: 294 Bytes

Versions: 26

Compression:

Stored size: 294 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, :type => :request

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
doorkeeper-0.4.2 spec/support/helpers/config_helper.rb
doorkeeper-0.4.1 spec/support/helpers/config_helper.rb
doorkeeper-0.4.0 spec/support/helpers/config_helper.rb
doorkeeper-0.3.4 spec/support/helpers/config_helper.rb
doorkeeper-0.3.3 spec/support/helpers/config_helper.rb
doorkeeper-0.3.2 spec/support/helpers/config_helper.rb