Closed shyamkkhadka closed 12 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)
here are another solutions of this problem, gist done by stevo ( rewritten routing )
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)
For the init.rb warning, just move it from rails/init.rb to init.rb and delete the rails folder of the plugin.
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
solved in 0.1.4
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??