Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
- describe Account do
- it "should be able to get created with username and password" do
- Account.create(:username => "seivan", :password => "asdasd")
- end
- it "should be able to get created with email and password" do
- Account.create(:email => "seivan@kth.se", :password => "asdasd")
- end
- it "should be able to login with username and password" do
- Account.authenticate("seivan", "asdasd")
- end
- it "should be able to login with email and password" do
- Account.authenticate("seivan@kth.se", "asdasd")
- end
- end
Add Comment
Please, Sign In to add comment