Changeset 350 for trunk/demo
- Timestamp:
- 06/13/08 10:26:38 (4 months ago)
- Files:
-
- trunk/demo/config/database.yml (modified) (2 diffs)
- trunk/demo/test/unit/comment_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/demo/config/database.yml
r270 r350 13 13 username: ferret 14 14 password: ferret 15 socket: /var/run/mysqld/mysqld.sock16 15 17 16 test: … … 20 19 username: ferret 21 20 password: ferret 22 socket: /var/run/mysqld/mysqld.sock23 21 24 22 # since this is a demo, we won't need this one trunk/demo/test/unit/comment_test.rb
r324 r350 11 11 def test_truth 12 12 assert_kind_of Comment, comments(:first) 13 end 14 15 def test_issue_220_index_false_as_false 16 c = Comment.new :content => false 17 assert_equal false, c.content 18 assert_equal 'false', c.content_for_field_name(:content) 19 assert_equal 'false', c.to_doc[:content] 20 c.save 21 assert_equal c, Comment.find_with_ferret('content:false').first 13 22 end 14 23
