Guest User

Untitled

a guest
Mar 15th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. module UserSpecHelper
  2.  
  3. def valid_signup_attributes
  4. {
  5. :login => 'quentin',
  6. :password => 'test',
  7. :password_confirmation => 'test',
  8. :email => 'quentin@fake-mail.com',
  9. :privacy => '1',
  10. }
  11. end
  12.  
  13. end
  14.  
  15. describe User, "signup attributes" do
  16. include UserSpecHelper
  17.  
  18. before(:each) do
  19. @user = User.new
  20. @user.attributes = valid_signup_attributes
  21. end
  22.  
  23. it "should be valid" do
  24. @user.should be_valid
  25. end
  26.  
  27. end
Add Comment
Please, Sign In to add comment