Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module UserSpecHelper
- def valid_signup_attributes
- {
- :login => 'quentin',
- :password => 'test',
- :password_confirmation => 'test',
- :email => 'quentin@fake-mail.com',
- :privacy => '1',
- }
- end
- end
- describe User, "signup attributes" do
- include UserSpecHelper
- before(:each) do
- @user = User.new
- @user.attributes = valid_signup_attributes
- end
- it "should be valid" do
- @user.should be_valid
- end
- end
Add Comment
Please, Sign In to add comment