diff --git a/spec/controllers/articles_controller_spec.rb b/spec/controllers/articles_controller_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/controllers/articles_controller_spec.rb
+++ b/spec/controllers/articles_controller_spec.rb
@@ -59,7 +59,9 @@ describe ArticlesController do
       end
 
       it 'should have content markdown interpret and without html tag' do
-        response.should have_selector('div', :content => /in markdown format\n\n\nwe\nuse\nok to define a link\n\n...\n/)
+        response.should have_selector('div') do |div|
+          div.should contain(/in markdown format\n\n\nwe\nuse\nok to define a link\n\n...\n/)
+        end
       end
 
     end
Use nested contains matcher to match content by regular expression.

Webrat's have_selector does not take regular expressions. Use a block
instead to match with contains.