Sha256: fd271c3504339f106a624de514c311117ebe75d0b21a8eed054b7e3593d15c88
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
require 'test_helper' class RailtieTest < FourthBase::TestCase def test_config expected_path = 'db/fourthbase' assert_equal expected_path, railtie_inst.config.fourth_base.path assert_equal expected_path, railtie_klass.config.fourth_base.path expected_config_key = 'fourthbase' assert_equal expected_config_key, railtie_inst.config.fourth_base.config_key assert_equal expected_config_key, railtie_klass.config.fourth_base.config_key end def test_fullpath expected = dummy_db.join('fourthbase').to_s assert_equal expected, railtie_inst.fullpath assert_equal expected, railtie_klass.fullpath end private def railtie_inst dummy_app.railties.grep(railtie_klass).first end def railtie_klass FourthBase::Railtie end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fourthbase-2.1.2 | test/cases/railtie_test.rb |