watir - Ruby Require not working/uninitialized constant -


i have had suite of ruby tests using cucumber , watir running on osx machine years. however, need them run on centos 6.6.

i think (hope) i've installed correctly. however, when try run tests, error on centos can't figure out.

bash-4.1$ bundle exec cucumber -p local_sun features/clones/registering/registration_step_one_successful.feature grid=true using local_sun profile... uninitialized constant common::utils::hydra::hydra::httprequests (nameerror) ./lib/common/utils/hydra.rb:12 ./lib/chimera-automation.rb:3:in `require' ./lib/chimera-automation.rb:3:in `require_files' ./lib/chimera-automation.rb:3:in `each' ./lib/chimera-automation.rb:3:in `require_files' ./lib/chimera-automation.rb:2:in `each' ./lib/chimera-automation.rb:2:in `require_files' ./features/support/env.rb:54 /var/lib/jenkins/qa-automation-ruby-client-delivery/features/clones/support/env.rb:2:in `require' /var/lib/jenkins/qa-automation-ruby-client-delivery/features/clones/support/env.rb:2 /var/lib/jenkins/qa-automation-ruby-client-delivery/features/clones/support/env.rb:2:in `each' /var/lib/jenkins/qa-automation-ruby-client-delivery/features/clones/support/env.rb:2 /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime/support_code.rb:180:in `load_file' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime/support_code.rb:82:in `each' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime.rb:182:in `load_step_definitions' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/runtime.rb:41:in `run!' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/cli/main.rb:43:in `execute!' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/../lib/cucumber/cli/main.rb:20:in `execute' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/gems/cucumber-1.2.5/bin/cucumber:14 /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/bin/cucumber:23:in `load' /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head/bin/cucumber:23 

i have same setup on mac , works. looks perhaps not loading files correctly when try require them?

figured out, turns out needed add ./ before file requiring. strange centos needed , osx not.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -