summaryrefslogtreecommitdiff
path: root/users/app/models
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-14 12:04:12 +0100
committerAzul <azul@leap.se>2013-01-14 12:04:12 +0100
commit3cd3c261bdf02b2da5217fa1c469d30f9d92c9a3 (patch)
tree3cf64d58e588b12103b3adac7397872427ed6677 /users/app/models
parent1623f51cc003f7de92f7192bba5ca88dfb2a92f6 (diff)
got users controller test to pass - tickets controller test next.
Diffstat (limited to 'users/app/models')
-rw-r--r--users/app/models/user.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index 8474d16..f20c6ac 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -54,17 +54,11 @@ class User < CouchRest::Model::Base
class << self
alias_method :find_by_param, :find
-
- # valid set of attributes for testing
- def valid_attributes_hash
- { :login => Faker::Name.first_name.downcase,
- :password_verifier => "1234ABCD",
- :password_salt => "4321AB" }
- end
-
end
- alias_method :to_param, :id
+ def to_param
+ self.id
+ end
def to_json(options={})
{