Adding some diary fixtures and test stubs
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Sat, 8 Nov 2008 11:34:58 +0000 (11:34 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Sat, 8 Nov 2008 11:34:58 +0000 (11:34 +0000)
test/fixtures/diary_comments.yml [new file with mode: 0644]
test/fixtures/diary_entries.yml [new file with mode: 0644]
test/functional/diary_entry_controller_test.rb

diff --git a/test/fixtures/diary_comments.yml b/test/fixtures/diary_comments.yml
new file mode 100644 (file)
index 0000000..8bb9f49
--- /dev/null
@@ -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"
diff --git a/test/fixtures/diary_entries.yml b/test/fixtures/diary_entries.yml
new file mode 100644 (file)
index 0000000..5d07e5f
--- /dev/null
@@ -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: 
index 7ebf439f4f286c4fc573778ae5073b7fb907db34..7eebfa57e6d1632e28c4ca8922208aa7349655bf 100644 (file)
@@ -1,8 +1,35 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
 class DiaryEntryControllerTest < ActionController::TestCase
-  # Replace this with your real tests.
-  def test_truth
-    assert true
+  def basic_authorization(user, pass)
+    @request.env["HTTP_AUTHORIZATION"] = "Basic %s" % Base64.encode64("#{user}:#{pass}")
+  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