Permalink
Browse files

Add specs testing presence validations.

  • Loading branch information...
1 parent 4e2da24 commit 32e194682f00f4786cfc056268d3a96e27c2602e @twe4ked committed May 13, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 spec/lib/unfollow_spec.rb
@@ -0,0 +1,14 @@
+require_relative '../spec_helper'
+
+describe Unfollow do
+ describe 'validations' do
+ it 'validates presence of user, oauth_token, oauth_token_secret and date' do
+ unfollow = Unfollow.new
+ unfollow.valid?
+
+ unfollow.errors.each do |error|
+ error.first.should =~ /not be blank/
+ end
+ end
+ end
+end

0 comments on commit 32e1946

Please sign in to comment.