Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #22 from maggieee/issue_10_model_tests

added event_spec w/one test
  • Loading branch information...
commit e042e44d05b9a496bfa7bfbb214866f098ec67be 2 parents d7c0f4a + d061daa
Sarah Allen ultrasaurus authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 spec/models/event_spec.rb
13 spec/models/event_spec.rb
View
@@ -0,0 +1,13 @@
+require 'spec_helper'
+
+describe Event do
+ it "must have a title" do
+ event = Factory.build(:event, :title => nil)
+ event.should_not be_valid
+ end
+
+ it "must have a date" do
+ event = Factory.build(:event, :date => nil)
+ event.should_not be_valid
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.