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-1.1.0 spec/support/helpers/config_helper.rb
doorkeeper-1.0.0 spec/support/helpers/config_helper.rb
doorkeeper-1.0.0.rc2 spec/support/helpers/config_helper.rb
doorkeeper-1.0.0.rc1 spec/support/helpers/config_helper.rb
doorkeeper-0.7.4 spec/support/helpers/config_helper.rb
doorkeeper-0.7.3 spec/support/helpers/config_helper.rb
doorkeeper-0.7.2 spec/support/helpers/config_helper.rb
doorkeeper-0.7.1 spec/support/helpers/config_helper.rb
doorkeeper-0.7.0 spec/support/helpers/config_helper.rb
doorkeeper-0.6.7 spec/support/helpers/config_helper.rb
doorkeeper-0.6.6 spec/support/helpers/config_helper.rb
doorkeeper-0.6.5 spec/support/helpers/config_helper.rb
doorkeeper-0.6.4 spec/support/helpers/config_helper.rb
doorkeeper-0.6.3 spec/support/helpers/config_helper.rb
doorkeeper-0.6.2 spec/support/helpers/config_helper.rb
doorkeeper-0.6.1 spec/support/helpers/config_helper.rb
doorkeeper-0.6.0 spec/support/helpers/config_helper.rb
doorkeeper-0.6.0.rc1 spec/support/helpers/config_helper.rb
doorkeeper-0.5.0 spec/support/helpers/config_helper.rb
doorkeeper-0.5.0.rc1 spec/support/helpers/config_helper.rb