Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- require "spec_helper"
- describe User do
- before do
- @user = User.new
- end
- it "should reject email with invalid domain name" do
- @user.email = "tino@homail.com"
- @user.should_not be_valid
- @user.should have(1).error_on(:email)
- end
- end
Add Comment
Please, Sign In to add comment