Guest User

Untitled

a guest
May 31st, 2018
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
  2.  
  3. describe Account do
  4. it "should be able to get created with username and password" do
  5. Account.create(:username => "seivan", :password => "asdasd")
  6. end
  7. it "should be able to get created with email and password" do
  8. Account.create(:email => "seivan@kth.se", :password => "asdasd")
  9. end
  10. it "should be able to login with username and password" do
  11. Account.authenticate("seivan", "asdasd")
  12. end
  13. it "should be able to login with email and password" do
  14. Account.authenticate("seivan@kth.se", "asdasd")
  15. end
  16. end
Add Comment
Please, Sign In to add comment