Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. test "config.asset_path is not passed through env" do
  2.       make_basic_app do |app|
  3.         app.config.asset_path = "/omg%s"
  4.       end
  5.  
  6.       class ::OmgController < ActionController::Base
  7.         def index
  8.           render :text => env["action_dispatch.asset_path"].inspect
  9.         end
  10.       end
  11.  
  12.       get "/"
  13.       assert_equal "nil", last_response.body
  14.     end