Skip to content

Instantly share code, notes, and snippets.

@jkutner
Created May 31, 2012 16:04
Show Gist options
  • Save jkutner/2844419 to your computer and use it in GitHub Desktop.
Save jkutner/2844419 to your computer and use it in GitHub Desktop.
it "should return nil if torquebox-server is not installed" do
# if you have torquebox-server installed, this will actually return a
# value instead of nil. so reseting gem paths.
old_gem_home = ENV['GEM_HOME']
old_gem_path = ENV['GEM_PATH']
ENV['GEM_PATH'] = ""
ENV['GEM_HOME'] = ""
Gem.clear_paths
TorqueBox::Server.torquebox_home.should == nil
Gem.clear_paths
ENV['GEM_HOME'] = old_gem_home
ENV['GEM_PATH'] = old_gem_path
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment