Sha256: 7aa2371ca9967adfe668fbc11bb4d4b14960676ad78d3d4033bd4b0e7744699e
Contents?: true
Size: 779 Bytes
Versions: 3
Compression:
Stored size: 779 Bytes
Contents
require 'rest-core/test' require 'rest-core/util/config' ::Rails = Object.new describe RestCore::Config do before do @klass = RestCore::Facebook.dup end after do RR.verify end def check @klass.default_app_id .should == 41829 @klass.default_secret .should == 'r41829'.reverse @klass.default_json_decode.should == false @klass.default_lang .should == 'zh-tw' end should 'honor rails config' do mock(Rails).env { 'test' } mock(Rails).root{ File.dirname(__FILE__) } RestCore::Config.load_for_rails(@klass, 'facebook') 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
3 entries across 3 versions & 1 rubygems