Permalink
Browse files

Missing case on active_record tests

  • Loading branch information...
1 parent 5d39b50 commit 485bc1a0c3122dbdef458f8d6c0c27c2368895a3 @dabit dabit committed Jul 6, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/lib/rails3-jquery-autocomplete/orm/active_record_test.rb
@@ -113,6 +113,18 @@ class Dog ; end
end
end
end
+
+ context '#postgres?' do
+ should 'return nil if PGConn is not defined' do
+ assert_nil self.postgres?
+ end
+
+ should 'return true if PGConn is defined' do
+ class ::PGConn ; end
+
+ assert self.postgres?
+ end
+ end
end
end
end

0 comments on commit 485bc1a

Please sign in to comment.