Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add failing spec for #1673.

  • Loading branch information...
commit ab1b4f1d951c82ad4484f3f7764aa96e86ebecc6 1 parent 4fa540e
@ugisozols ugisozols authored parndt committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.