Skip to content

Commit

Permalink
Account for new descendants implementation since Rails 3 (called mult…
Browse files Browse the repository at this point in the history
…iple times)
  • Loading branch information
jomz committed Feb 13, 2014
1 parent 5058b8a commit 021e805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/page_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 021e805

Please sign in to comment.