aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorfrancis <francis>2007-09-10 18:58:42 +0000
committerfrancis <francis>2007-09-10 18:58:42 +0000
commit2f61ce926c4311ff95597c1c871081a1fb46a4d6 (patch)
treee59a0e989b31e51a6069c8426840ec4db95dc26b /test
parent022f7a0d72a7742875d9ba94ce33a4ec069d36dd (diff)
Model for outgoing messages.
Save body of initial request as an outgoing message. Try and validate and save the pair of models correctly.
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/outgoing_messages.yml11
-rw-r--r--test/unit/outgoing_message_test.rb10
2 files changed, 21 insertions, 0 deletions
diff --git a/test/fixtures/outgoing_messages.yml b/test/fixtures/outgoing_messages.yml
new file mode 100644
index 000000000..e6b5d7e2a
--- /dev/null
+++ b/test/fixtures/outgoing_messages.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+one:
+ id: 1
+ body: MyText
+ created_at: 2007-09-10 09:55:11
+ updated_at: 2007-09-10 09:55:11
+two:
+ id: 2
+ body: MyText
+ created_at: 2007-09-10 09:55:11
+ updated_at: 2007-09-10 09:55:11
diff --git a/test/unit/outgoing_message_test.rb b/test/unit/outgoing_message_test.rb
new file mode 100644
index 000000000..12b55e5d0
--- /dev/null
+++ b/test/unit/outgoing_message_test.rb
@@ -0,0 +1,10 @@
+require File.dirname(__FILE__) + '/../test_helper'
+
+class OutgoingMessageTest < Test::Unit::TestCase
+ fixtures :outgoing_messages
+
+ # Replace this with your real tests.
+ def test_truth
+ assert true
+ end
+end