spec/djr_controller_spec.rb in djr-0.2.0 vs spec/djr_controller_spec.rb in djr-0.3.0
- old
+ new
@@ -11,11 +11,11 @@
routes = Rails.application.routes
routes.disable_clear_and_finalize = true
routes.clear!
Rails.application.routes_reloader.paths.each { |path| load(path) }
routes.draw do
- match "/products" => "products#index"
+ match "/products" => "products#index", :via => :GET
end
routes.disable_clear_and_finalize = false
routes.finalize!
@generated_javascript = ";DjrController = function(){DJR.call(this);}; DjrController.prototype.routes = {};ProductsController = function(){DJR.call(this);}; ProductsController.prototype.routes = {}; DjrController.prototype.routes['djr'] = {url: \"/djr(.:format)\", method: \"GET\" }; ProductsController.prototype.routes['index'] = {url: \"/products(.:format)\", method: \"GET\" };"
@@ -41,10 +41,10 @@
routes = Rails.application.routes
routes.disable_clear_and_finalize = true
routes.clear!
Rails.application.routes_reloader.paths.each { |path| load(path) }
routes.draw do
- match "/products" => "products#index"
+ match "/products" => "products#index", :via => :GET
end
routes.disable_clear_and_finalize = false
routes.finalize!
@generated_javascript = ";DjrController = function(){DJR.call(this);}; DjrController.prototype.routes = {};ProductsController = function(){DJR.call(this);}; ProductsController.prototype.routes = {}; DjrController.prototype.routes['djr'] = {url: \"/djr(.:format)\", method: \"GET\" }; ProductsController.prototype.routes['index'] = {url: \"/products(.:format)\", method: \"GET\" };"
\ No newline at end of file