miksturait / cucumber_fm-plugin

Help to manage with big amount of features in project (gui for rails)
http://cucumber.fm
MIT License
96 stars 2 forks source link

Lots of DEPECRATION warning message #21

Closed shyamkkhadka closed 12 years ago

shyamkkhadka commented 14 years ago

Hi, After using this plugin, I am getting lots of warning message while running cucumber scenarios. Here is the full warning trace: DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/me/Dev/shyam/myapp/vendor/plugins/cucumber_fm/rails/init.rb. (called from /Users/me/Dev/shyam/myapp/config/environment.rb:5) DEPRECATION WARNING: ActionController::Routing::Routes is deprecated. Instead, use Rails.application.routes. (called from /Users/me/Dev/shyam/myapp/vendor/plugins/cucumber_fm/config/routes.rb:1) DEPRECATION WARNING: You are using the old router DSL which will be removed in Rails 3.1. Please check how to update your routes file at: http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/. (called from /Users/me/Dev/shyam/myapp/vendor/plugins/cucumber_fm/config/routes.rb:1) DEPRECATION WARNING: ActionController::Routing::Routes is deprecated. Instead, use Rails.application.routes. (called from /Users/me/Dev/shyam/myapp/vendor/plugins/cucumber_fm/config/routes.rb:1) DEPRECATION WARNING: You are using the old router DSL which will be removed in Rails 3.1. Please check how to update your routes file at: http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/. (called from /Users/me/Dev/shyam/myapp/vendor/plugins/cucumber_fm/config/routes.rb:1)

Any suggestions??

cs3b commented 14 years ago

thx for feedback

this plugin was written for rails 2 ( this requirement comes from our production project that we ware developing in June when i started development)

my plan is to finish milestone 2 ( one feature is missing ) and then split it to 3 different libraries, and make it compatible with rails 3.1

meantime you can disable - it's safe - this plugin in test ( or cucumber ) environment by

config.plugins = %w($list_of_all_plugins_except_cucumber_fm)
cs3b commented 14 years ago

here are another solutions of this problem, gist done by stevo ( rewritten routing )

https://gist.github.com/023bf56f627bad359628

shyamkkhadka commented 14 years ago

Thanks for solution. But still one warning is remaining DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/me/Dev/shyam/cloudfactory/vendor/plugins/cucumber_fm/rails/init.rb. (called from /Users/me/Dev/shyam/cloudfactory/config/environment.rb:5)

kristianmandrup commented 13 years ago

For the init.rb warning, just move it from rails/init.rb to init.rb and delete the rails folder of the plugin.

cs3b commented 13 years ago

try this

https://github.com/cs3b/cucumber_fm/tree/rails_3

emoreth commented 13 years ago

Just sent you a pull request with the new routing DSL. The old URL interface was shallow copied without further inspection. I believe that some routes might be restricted to GETs and POSTs.

I opted to that because not all spec/cucumber tests are passing on my machine, and I don't know if they are intended to. Once that there is a lot of pending steps.

Regards, EMoreth

cs3b commented 12 years ago

solved in 0.1.4