Skip to content

Commit

Permalink
Fixed selector issue with the last spec
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jul 6, 2010
1 parent c8eb77f commit 94345a7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spec/views/common/_sortable_list.html.erb_spec.rb
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 94345a7

Please sign in to comment.