From 94345a76e0f75b95587f01e4448aac80b0a7088e Mon Sep 17 00:00:00 2001 From: Yomi Colledge Date: Tue, 6 Jul 2010 22:57:31 +0100 Subject: [PATCH] Fixed selector issue with the last spec --- spec/views/common/_sortable_list.html.erb_spec.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spec/views/common/_sortable_list.html.erb_spec.rb b/spec/views/common/_sortable_list.html.erb_spec.rb index 02821b10..d504864c 100644 --- a/spec/views/common/_sortable_list.html.erb_spec.rb +++ b/spec/views/common/_sortable_list.html.erb_spec.rb @@ -110,7 +110,7 @@ before(:each) do @features = [mock_model(Feature,:path => "#{RAILS_ROOT}/features/tag_cloud.feature").as_null_object] @features.stub(:total_pages).and_return 1 - render :partial => '/common/sortable_list', :locals => {:models => @features, :item_name => 'feature', :assoc => 'story', :order => true} + render :partial => '/common/sortable_list', :locals => {:models => @features, :item_name => 'feature', :assoc => 'story', :order => true} end it "should display a features path" do @@ -120,10 +120,7 @@ end it "will display the path location" do - response.should have_selector :b do |content| - content.should contain "Path: #{RAILS_ROOT}/features/tag_cloud.feature" - end + response.should contain "Path: #{RAILS_ROOT}/features/tag_cloud.feature" end end - end \ No newline at end of file