Sha256: 50d0c18cf7943e3d01b537a0743f2da62d7895f588e6e00c33fb5df0ad7c58f9
Contents?: true
Size: 780 Bytes
Versions: 1
Compression:
Stored size: 780 Bytes
Contents
require 'rest-more/test' require 'rest-core/util/config' describe RestCore::Config do before do @klass = RestCore::Facebook.dup end after do RR.verify end def check @klass.default_app_id .should.eq 41829 @klass.default_secret .should.eq 'r41829'.reverse @klass.default_json_decode.should.eq false @klass.default_lang .should.eq 'zh-tw' end should 'honor rails config' do app = Object.new mock(app).env { 'test' } mock(app).root{ File.dirname(__FILE__) } RestCore::Config.load_for_rails(@klass, 'facebook', app) check end should 'honor config' do RestCore::Config.load( @klass, "#{File.dirname(__FILE__)}/config/rest-core.yaml", 'test', 'facebook') check end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest-more-0.7.1 | test/client/facebook/test_load_config.rb |