Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a test for the issue #335 fix.

  • Loading branch information...
commit 006b6915988b7ecb1e90cfa84bc94e914d4257cb 1 parent 45168c9
Hongli Lai FooBarWidget authored
Showing with 4 additions and 9 deletions.
  1. +4 −9 test/integration_tests/apache2_tests.rb
13 test/integration_tests/apache2_tests.rb
View
@@ -99,15 +99,10 @@
end
it "supports environment variable passing through mod_env" do
- begin
- File.open("#{@stub.app_root}/public/.htaccess", 'w') do |f|
- f.puts 'SetEnv FOO "Foo Bar!"'
- end
- File.touch("#{@stub.app_root}/tmp/restart.txt")
- get('/welcome/environment').should =~ /FOO = Foo Bar\!/
- ensure
- File.unlink("#{@stub.app_root}/public/.htaccess") rescue nil
- end
+ File.write("#{@stub.app_root}/public/.htaccess", 'SetEnv FOO "Foo Bar!"')
+ File.touch("#{@stub.app_root}/tmp/restart.txt")
+ get('/welcome/environment').should =~ /FOO = Foo Bar\!/
+ get('/welcome/cgi_environment').should =~ /FOO = Foo Bar\!/
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.