various UI improvements
[coquelicot.git] / spec / coquelicot_spec.rb
index 994671c..53a50b8 100644 (file)
@@ -56,8 +56,7 @@ describe 'Coquelicot' do
     follow_redirect!
     last_response.should be_ok
     doc = Hpricot(last_response.body)
-    return (doc/'.url a').collect { |a| a.attributes['href'] }.
-             select { |h| h.start_with? "http://#{last_request.host}/" }[0]
+    return (doc/'.ready')[0].inner_text
   end
 
   def build_multipart(params)