can we have subdirectories in the page model?

0 views
Skip to first unread message

bpa

unread,
May 13, 2010, 9:35:12 PM5/13/10
to gizmo - page-model testing
In my project I have the following subdirectories under the "page"
folder: page/homepage/testA.feature, page/search/testB.feature, page/
homepage/testC.feature, etc.

and I have the following code in my env.rb

Gizmo.configure do |config|
config.mixin_dir = File.dirname(__FILE__) + '/pages'
end

However, when I run my test I got the following error:

Expected a page mixin file at /Users/work/rea2-tests/features/support/
selenium/../pages/testA.feature generate one with `gizmo -g
default_search_form` (Gizmo::MixinNotFoundError)

It seems that Gizmo can't load page models (pages/homepage/
testA.feature) in the subdirectories.

Thanks,

Bagas

Luke Cunningham

unread,
May 16, 2010, 6:42:12 PM5/16/10
to gizm...@googlegroups.com
Hey bagas, subdirectories in the mixin directory is something we
overlooked. I have added it now, you won't need to make any changes to
your code, they should just load now.

I have pushed it to githum, but not released a new version yet. But I
will in the next fee days.

In the mean time, if your using bundled, just point it to the gizmo
git URL so it can install the gem from there.

I'll post another note when I push out the new version.
Reply all
Reply to author
Forward
0 new messages