12 lines
293 B
Ruby
12 lines
293 B
Ruby
|
require File.join(File.dirname(__FILE__), 'test_helper')
|
||
|
|
||
|
class ConfigTest < Test::Unit::TestCase
|
||
|
|
||
|
context "Hobo configuration" do
|
||
|
test "a hash source is converted to dot methods" do
|
||
|
Hobo::Config.parse!(:a => {:b => 1})
|
||
|
assert Hobo::Config.config.a.b == 1
|
||
|
end
|
||
|
end
|
||
|
end
|