Browse files

Add failing spec for #1673.

  • Loading branch information...
1 parent 4fa540e commit ab1b4f1d951c82ad4484f3f7764aa96e86ebecc6 @ugisozols ugisozols committed with parndt May 21, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 dashboard/spec/requests/refinery/admin/dashboard_spec.rb
View
10 dashboard/spec/requests/refinery/admin/dashboard_spec.rb
@@ -46,5 +46,15 @@
3.times { |n| page.should have_content("Ugisozols#{n} user was added") }
3.times { |n| page.should have_content("Refinery cms #{n} page was added") }
end
+
+ # see https://github.com/resolve/refinerycms/issues/1673
+ it "uses proper link for nested pages" do
+ parent = FactoryGirl.create :page, :title => "Parent"
+ nested = FactoryGirl.create :page, :title => "I'm nested", :parent_id => parent.id
+
+ visit refinery.admin_dashboard_path
+
+ page.should have_selector("a[href='#{refinery.edit_admin_page_path(nested.uncached_nested_url)}']")
+ end
end
end

0 comments on commit ab1b4f1

Please sign in to comment.