1 require File.dirname(__FILE__) + '/../test_helper'
3 class DiaryEntryControllerTest < ActionController::TestCase
4 def basic_authorization(user, pass)
5 @request.env["HTTP_AUTHORIZATION"] = "Basic %s" % Base64.encode64("#{user}:#{pass}")
9 @request.env["RAW_POST_DATA"] = c.to_s
12 def test_showing_create_diary_entry
16 def test_editing_diary_entry
20 def test_editing_creating_diary_comment
24 def test_listing_diary_entries
32 def test_viewing_diary_entry