Sha256: 34c6375ae135b6e41ac16477764f77b164e274dcb6c0e86341901264df0e594a
Contents?: true
Size: 875 Bytes
Versions: 3
Compression:
Stored size: 875 Bytes
Contents
require 'test_helper' context 'with the base class' do test 'get the environment' do assert 'test', AllSeeingEye.environment end test 'load the configuration' do assert AllSeeingEye.configuration[:all_seeing_eye]['request'] assert !AllSeeingEye.configuration[:models].empty? assert AllSeeingEye.configuration[:redis] end test 'connect to Redis' do assert_equal '1', AllSeeingEye.redis.info["connected_clients"] end test 'loads new classes from YML file' do assert AllSeeingEye.const_defined?(:Request) assert AllSeeingEye.const_defined?(:Response) assert AllSeeingEye.configuration[:models].include?(AllSeeingEye::Request) assert AllSeeingEye.configuration[:models].include?(AllSeeingEye::Response) end test 'do not load default keys as classes' do assert !AllSeeingEye.const_defined?(:Timeout) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
all_seeing_eye-0.1.1 | test/base_test.rb |
all_seeing_eye-0.1.0 | test/base_test.rb |
all_seeing_eye-0.0.20 | test/base_test.rb |