Sha256: 3f1f3cdac55bd6ab4593f2554ad50a42399fd358e72eced08a1b40527a965cb6
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
require 'test_helper' class RailtieTest < ThirdBase::TestCase def test_config expected_path = 'db/thirdbase' assert_equal expected_path, railtie_inst.config.third_base.path assert_equal expected_path, railtie_klass.config.third_base.path expected_config_key = 'thirdbase' assert_equal expected_config_key, railtie_inst.config.third_base.config_key assert_equal expected_config_key, railtie_klass.config.third_base.config_key end def test_fullpath expected = dummy_db.join('thirdbase').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 ThirdBase::Railtie end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thirdbase-2.1.2 | test/cases/railtie_test.rb |
thirdbase-2.1.1 | test/cases/railtie_test.rb |