Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- What is the best way of organizing Rails functional and unit test cases?
- describe "#generate_password_salt" do
- user = User.new(password: 'foobar')
- user.generate_password_salt.should == '1231asdas'
- end
- describe "when creating new user" do
- it "should generate password salt" do
- ...
- end
- end
Add Comment
Please, Sign In to add comment