added behavior section to site index
[god.git] / test / test_meddle.rb
blobf5c1f521e853acb5fece52044d61078484afde52
1 require 'helper'
3 class TestMeddle < Test::Unit::TestCase
4   def setup
5     @meddle = Meddle.new
6   end
7   
8   def test_should_initialize_watches_to_empty_array
9     assert_equal [], @meddle.watches
10   end
11   
12   def test_watches_should_get_stored
13     watch = nil
14     @meddle.watch { |w| watch = w }
15     
16     assert_equal 1, @meddle.watches.size
17     assert_equal watch, @meddle.watches.first
18   end
19 end