If you write `expect{test_obj.to_solr}.to_not raise_error`  then your intentions would be more clear.