Permalink
Browse files

fixed ordering in env.rb when using --with-lib command parameter

  • Loading branch information...
cheezy committed Mar 24, 2013
1 parent e9d9121 commit 2aa7700a4e55c62dee2971dbf69b1b4c8faffc63
Showing with 12 additions and 7 deletions.
  1. +12 −7 lib/testgen/generators/project/env.rb.tt
@@ -6,17 +6,25 @@ require 'rspec-expectations'
<% unless pageobject_driver.downcase == 'none' -%>
require 'page-object'
<% end -%>
+
+<% if with_gametel == 'true' -%>
+require 'brazenhead'
+require 'brazenhead/server'
+require 'gametel'
+<% end -%>
+
+<% if with_mohawk == 'true' -%>
+require 'childprocess'
+require 'mohawk'
+<% end -%>
+
<% if with_lib == 'true' -%>
require 'require_all'
require_all 'lib'
<% end -%>
<% if with_gametel == 'true' -%>
-require 'brazenhead'
-require 'brazenhead/server'
-require 'gametel'
-
World(Gametel::Navigation)
keystore = {
@@ -47,9 +55,6 @@ World(PageObject::PageFactory)
<% end -%>
<% if with_mohawk == 'true' -%>
-require 'childprocess'
-require 'mohawk'
-
World(Mohawk::Navigation)
Before do

0 comments on commit 2aa7700

Please sign in to comment.