Sha256: 85d7a4009a5384141788271232301b16bebd1dd4b7c57e71e557d71deed415eb

Contents?: true

Size: 534 Bytes

Versions: 21

Compression:

Stored size: 534 Bytes

Contents

require 'rest-core/test'

describe RC::Config do
  before do
    @klass = RC::Builder.client
  end

  after do
    Muack.verify
  end

  def check
    @klass.default_app_id       .should.eq 41829
    @klass.default_secret       .should.eq 'r41829'.reverse
    @klass.default_json_response.should.eq false
    @klass.default_lang         .should.eq 'zh-tw'
  end

  would 'honor config' do
    RC::Config.load(
      @klass,
      "#{File.dirname(__FILE__)}/config/rest-core.yaml",
      'test',
      'facebook')
    check
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rest-core-4.0.1 test/test_config.rb
rest-core-4.0.0 test/test_config.rb
rest-core-3.6.0 test/test_config.rb
rest-core-3.5.92 test/test_config.rb
rest-core-3.5.91 test/test_config.rb
rest-core-3.5.9 test/test_config.rb
rest-core-3.5.8 test/test_config.rb
rest-core-3.5.7 test/test_config.rb
rest-core-3.5.6 test/test_config.rb
rest-core-3.5.5 test/test_config.rb
rest-core-3.5.4 test/test_config.rb
rest-core-3.5.3 test/test_config.rb
rest-core-3.5.2 test/test_config.rb
rest-core-3.5.1 test/test_config.rb
rest-core-3.5.0 test/test_config.rb
rest-core-3.4.1 test/test_config.rb
rest-core-3.4.0 test/test_config.rb
rest-core-3.3.3 test/test_config.rb
rest-core-3.3.2 test/test_config.rb
rest-core-3.3.1 test/test_config.rb