Skip to content

Commit e31c0f0

Browse files
committed
No class vars at toplevel
1 parent a598f80 commit e31c0f0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/spec/ruby/jruby/rack/app_layout_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@
8989

9090
shared_examples "FileSystemLayout" do
9191

92-
@@__work_dir__ = Dir.pwd
92+
__work_dir__ = Dir.pwd
9393

9494
before do
9595
require 'tmpdir'
9696
Dir.chdir Dir.mktmpdir
9797
end
9898

9999
after do
100-
Dir.chdir @@__work_dir__
100+
Dir.chdir __work_dir__
101101
end
102102

103103
it "sets app and public uri defaults based on a typical (Rails/Rack) app" do

src/spec/ruby/jruby/rack/booter_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
after(:all) { JRuby::Rack.context = nil }
1818

19-
@@rack_env = ENV['RACK_ENV']
20-
@@gem_path = Gem.path.dup
21-
@@env_gem_path = ENV['GEM_PATH']
19+
rack_env = ENV['RACK_ENV']
20+
gem_path = Gem.path.dup
21+
env_gem_path = ENV['GEM_PATH']
2222

2323
after do
24-
@@rack_env.nil? ? ENV.delete('RACK_ENV') : ENV['RACK_ENV'] = @@rack_env
25-
Gem.path.replace(@@gem_path)
26-
@@env_gem_path.nil? ? ENV.delete('GEM_PATH') : ENV['GEM_PATH'] = @@env_gem_path
24+
rack_env.nil? ? ENV.delete('RACK_ENV') : ENV['RACK_ENV'] = rack_env
25+
Gem.path.replace(gem_path)
26+
env_gem_path.nil? ? ENV.delete('GEM_PATH') : ENV['GEM_PATH'] = env_gem_path
2727
end
2828

2929
it "should determine the public html root from the 'public.root' init parameter" do

0 commit comments

Comments
 (0)