Adding some diary fixtures and test stubs

This commit is contained in:
Shaun McDonald 2008-11-08 11:34:58 +00:00
parent e598ee220f
commit c6592045c4
3 changed files with 58 additions and 3 deletions

7
test/fixtures/diary_comments.yml vendored Normal file
View file

@ -0,0 +1,7 @@
comment_for_geo_post:
id: 1
diary_entry_id: 2
user_id: 2
body: Some comment text
created_at: "2008-11-08 09:45:34"
updated_at: "2008-11-08 10:34:34"

21
test/fixtures/diary_entries.yml vendored Normal file
View file

@ -0,0 +1,21 @@
normal_user_entry_1:
id: 1
user_id: 1
title: Diary Entry 1
body: This is the body of diary entry 1.
created_at: "2008-11-07 17:43:34"
updated_at: "2008-11-07 17:43:34"
latitude:
longitude:
language:
normal_user_geo_entry:
id: 2
user_id: 1
title: Geo Entry 1
body: This is the body of a geo diary entry in London.
created_at: "2008-11-07 17:47:34"
updated_at: "2008-11-07 17:47:34"
latitude: 51.50763
longitude: -0.10781
language:

View file

@ -1,8 +1,35 @@
require File.dirname(__FILE__) + '/../test_helper' require File.dirname(__FILE__) + '/../test_helper'
class DiaryEntryControllerTest < ActionController::TestCase class DiaryEntryControllerTest < ActionController::TestCase
# Replace this with your real tests. def basic_authorization(user, pass)
def test_truth @request.env["HTTP_AUTHORIZATION"] = "Basic %s" % Base64.encode64("#{user}:#{pass}")
assert true end
def content(c)
@request.env["RAW_POST_DATA"] = c.to_s
end
def test_showing_create_diary_entry
end
def test_editing_diary_entry
end
def test_editing_creating_diary_comment
end
def test_listing_diary_entries
end
def test_rss
end
def test_viewing_diary_entry
end end
end end