aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/user_spec.rb
diff options
context:
space:
mode:
authorlouise <louise>2007-10-16 19:50:11 +0000
committerlouise <louise>2007-10-16 19:50:11 +0000
commit254c3a4bcde7d82dd8a3d7cafeb6a8fcf22cd433 (patch)
tree74f8a3c2b400f265fa986dd8dc2e9cf8154aaf3f /spec/models/user_spec.rb
parent115f71d49e4552874b430afe292aac22f832d5fa (diff)
Adding rspec config files, initial specs
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
new file mode 100644
index 000000000..879006b4b
--- /dev/null
+++ b/spec/models/user_spec.rb
@@ -0,0 +1,15 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe User, " when authenticating" do
+
+ before do
+ @user = User.new
+ end
+
+ it "should create a hashed password when the password is set" do
+ @user.hashed_password.should be_nil
+ @user.password = "a test password"
+ @user.hashed_password.should_not be_nil
+ end
+
+end \ No newline at end of file