Skip to content

Instantly share code, notes, and snippets.

@benvds
Created June 19, 2009 09:21
Show Gist options
  • Save benvds/132526 to your computer and use it in GitHub Desktop.
Save benvds/132526 to your computer and use it in GitHub Desktop.
# customer.rb
class Customer < ActiveRecord::Base
validates_presence_of :first_name
end
# customer_test.rb
require 'test_helper'
class CustomerTest < ActiveSupport::TestCase
should_validate_presence_of :first_name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment