Sha256: a2e9bcdf108c0bd78b9b2dea2fa5267a742fdda6f553e309cf61d4becada5b59
Contents?: true
Size: 819 Bytes
Versions: 3
Compression:
Stored size: 819 Bytes
Contents
require 'test_helper' require 'camping' module Config end class Config::Test < TestCase def setup write_config() Camping.goes :Config @options = Camping::Apps.select{|a| a.name == "Config" }.first.options super end def teardown trash_config() super end def test_config assert @options.has_key? :hostname assert @options.has_key? :friends assert_equal @options[:friends].first, "_why", "_why isn't here?" assert_equal @options[:friends].length, 3, "Where are all our friends?" assert_equal @options.has_key?(:database), true, "By Golly the Database settings are missing." assert_equal @options[:database].length, 4, "We're missing some database settings." assert_equal @options[:database][:adapter], "sqlite3", "sqlite is missing. Not good." end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
camping-3.0.2 | test/app_config.rb |
camping-3.0.1 | test/app_config.rb |
camping-3.0.0 | test/app_config.rb |