fix cmtool pages index

This commit is contained in:
2012-06-22 13:32:05 +02:00
parent 3e7c25a3fb
commit 0a10dada4d
5 changed files with 11 additions and 2 deletions
Binary file not shown.
+8
View File
@@ -50,6 +50,14 @@ RSpec.configure do |config|
fill_in 'user[password]', with: @user.password
click_on 'Sign in'
end
def create_pages_tree
root1 = Page.create(name: 'root1', locale: 'en')
root2 = Page.create(name: 'root2', locale: 'en')
child1_1 = Page.create( name: 'child1.1', locale: 'en', parent: root1 )
child2_1 = Page.create( name: 'child2.1', locale: 'en', parent: root2 )
child2_2 = Page.create( name: 'child2.2', locale: 'en', parent: root2 )
end
# ## Mock Framework
#
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: