test/exposure_test.rb in neo-rails-0.3.2 vs test/exposure_test.rb in neo-rails-0.4.0

- old
+ new

@@ -9,14 +9,10 @@ class ExposureTestController < ActionController::Base include Neo::Rails::Exposure exposes :a, :b - def foo - render :text => "bar" - end - def expose_via_value expose :a, "a" expose :b, "b" render :inline => %{ar=#{exposures.a},ah=<%= a %>,br=#{exposures.b},bh=<%= b %>} end @@ -77,13 +73,15 @@ end end class ExposureTestApp < Rails::Application routes.draw do - get ":action" => ExposureTestController - get "other/:action" => OtherExposureTestController - get "a/:action" => ATestController - get "b/:action" => BTestController + ExposureTestController.action_methods.each do |action| + get action => "exposure_test##{action}" + end + get "other/bar" => "other_exposure_test#bar" + get "a/baz" => "a_test#baz" + get "b/baz" => "b_test#baz" end config.secret_key_base = "a" * 32 config.secret_token = "a" * 32 config.session_store :disabled