diff options
| author | hukl <hukl@eight.local> | 2009-02-08 15:15:43 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-08 15:15:43 +0100 |
| commit | a6eea1a843c29112a737e77d6cb813c8980fb836 (patch) | |
| tree | 36433d2027e930404ccb11c61396aba9b3794fb8 /test | |
| parent | bb9d9ccd57ce5673b52a1856dfd32337f4ae4b22 (diff) | |
added basic user model and user_id on page model
to introduce the concept of authors.
Diffstat (limited to 'test')
| -rw-r--r-- | test/fixtures/users.yml | 13 | ||||
| -rw-r--r-- | test/unit/user_test.rb | 8 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml new file mode 100644 index 0000000..74fafbd --- /dev/null +++ b/test/fixtures/users.yml | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html | ||
| 2 | |||
| 3 | one: | ||
| 4 | login: MyString | ||
| 5 | email: MyString | ||
| 6 | crypted_password: MyString | ||
| 7 | salt: MyString | ||
| 8 | |||
| 9 | two: | ||
| 10 | login: MyString | ||
| 11 | email: MyString | ||
| 12 | crypted_password: MyString | ||
| 13 | salt: MyString | ||
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb new file mode 100644 index 0000000..a64d2d3 --- /dev/null +++ b/test/unit/user_test.rb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | require 'test_helper' | ||
| 2 | |||
| 3 | class UserTest < ActiveSupport::TestCase | ||
| 4 | # Replace this with your real tests. | ||
| 5 | test "the truth" do | ||
| 6 | assert true | ||
| 7 | end | ||
| 8 | end | ||
