Skip to content

Commit

Permalink
Get Guard working with Spork
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartl committed May 14, 2013
1 parent e78a1f9 commit f04b9f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
require 'active_support/inflector'

guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' },
:rspec_env => { 'RAILS_ENV' => 'test' } do
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class User < ActiveRecord::Base
has_many :followers, through: :reverse_relationships, source: :follower
before_save { self.email = email.downcase }
before_save :create_remember_token
validates :name, presence: true, length: { maximum: 50 }
validates :name, presence: true, length: { maximum: 50 }
VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+\z/i
validates :email, presence: true, format: { with: VALID_EMAIL_REGEX },
uniqueness: { case_sensitive: false }
Expand Down

0 comments on commit f04b9f6

Please sign in to comment.