2016-09-08 10:25:33 -05:00
|
|
|
# frozen_string_literal: true
|
2016-08-16 17:09:40 -05:00
|
|
|
require 'test_helper'
|
|
|
|
|
|
|
|
class SkillConfigTest < ActiveSupport::TestCase
|
|
|
|
test "verify sample file exists" do
|
|
|
|
assert File.exist? "#{Rails.root}/config/application.yml.sample"
|
|
|
|
end
|
|
|
|
|
|
|
|
test "verify config file exists" do
|
|
|
|
assert File.exist? "#{Rails.root}/config/application.yml"
|
|
|
|
end
|
|
|
|
|
|
|
|
test 'config can load and return proper values' do
|
|
|
|
skonfig = SkillConfig.new
|
|
|
|
|
|
|
|
assert_equal 'localhost', skonfig.mysql_host
|
|
|
|
end
|
|
|
|
end
|