Created
February 15, 2010 17:15
-
-
Save ktopping/304801 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test "sunspot available" do | |
begin | |
# Search for instances of "String". The String class will always | |
# exist, so I use it in order to make this test simpler. It then | |
# has no dependency on my application classes. | |
s = Sunspot.search(String) {} | |
rescue | |
assert false, "Cannot connect to solr server #{Sunspot.config.solr.url}\n#{$!}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment