Skip to content

Instantly share code, notes, and snippets.

@mattetti
Created September 7, 2008 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattetti/9255 to your computer and use it in GitHub Desktop.
Save mattetti/9255 to your computer and use it in GitHub Desktop.
require File.join( File.dirname(__FILE__), '..', "spec_helper" )
describe Client do
it "should have a valid factory" do
Factory.build(:client).should be_valid
end
it "should not be valid without a name" do
Factory.build(:client, :name => nil).should_not be_valid
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment