Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Missing case on active_record tests

  • Loading branch information...
commit 485bc1a0c3122dbdef458f8d6c0c27c2368895a3 1 parent 5d39b50
@dabit dabit authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/lib/rails3-jquery-autocomplete/orm/active_record_test.rb
View
12 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
Please sign in to comment.
Something went wrong with that request. Please try again.