aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorfrancis <francis>2007-11-01 14:45:56 +0000
committerfrancis <francis>2007-11-01 14:45:56 +0000
commit9e08e323fcdcf763d76ede20807893f6bbfb7fbf (patch)
tree75862722c1aea384bebc0095e22ebb4cf387c6cd /test
parentacbd0f3e2f47e5fd1d235dd8e12351b85a499eca (diff)
Save post request properly into database with a model, as a record of where to
redirect back to after login. Token generation for these saved logins.
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/post_redirects.yml5
-rw-r--r--test/unit/post_redirect_test.rb10
2 files changed, 15 insertions, 0 deletions
diff --git a/test/fixtures/post_redirects.yml b/test/fixtures/post_redirects.yml
new file mode 100644
index 000000000..b49c4eb4e
--- /dev/null
+++ b/test/fixtures/post_redirects.yml
@@ -0,0 +1,5 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+one:
+ id: 1
+two:
+ id: 2
diff --git a/test/unit/post_redirect_test.rb b/test/unit/post_redirect_test.rb
new file mode 100644
index 000000000..785f53170
--- /dev/null
+++ b/test/unit/post_redirect_test.rb
@@ -0,0 +1,10 @@
+require File.dirname(__FILE__) + '/../test_helper'
+
+class PostRedirectTest < Test::Unit::TestCase
+ fixtures :post_redirects
+
+ # Replace this with your real tests.
+ def test_truth
+ assert true
+ end
+end