public
Fork of rubys/mars
Description: Yet Another Planet Refactoring
Homepage: http://intertwingly.net/blog/2007/12/19/Yet-Another-Planet-Refactoring
Clone URL: git://github.com/technomancy/mars.git
mars / test / test_config.rb
100644 16 lines (11 sloc) 0.331 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require File.dirname(__FILE__) + '/test_helper'
 
require 'planet/config'
 
class TestConfig < Test::Unit::TestCase
  def setup
    Planet.configure File.dirname(__FILE__) + '/config.yml'
  end
 
  def test_configuration
    assert_equal 'Test Planet', Planet.config['name']
    assert_equal 3, Planet.config['feeds'].size
  end
end