Permalink
Browse files

Account for new descendants implementation since Rails 3 (called mult…

…iple times)
  • Loading branch information...
1 parent 5058b8a commit 021e8059f69ea6b1a3f12b1356f555ec44dc4cef @jomz jomz committed Feb 13, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/models/page_spec.rb
View
@@ -420,7 +420,7 @@ def filter(text)
end
it 'should return a collection containing the default_child and ordered by name Page descendants that are in_menu' do
- Page.should_receive(:descendants).and_return([PageSpecTestPage, CustomFileNotFoundPage])
+ Page.should_receive(:descendants).at_least(:once).and_return([PageSpecTestPage, CustomFileNotFoundPage])
page.allowed_children_lookup.should == [Page, CustomFileNotFoundPage, PageSpecTestPage]
end
end

0 comments on commit 021e805

Please sign in to comment.