Created
May 31, 2012 16:04
-
-
Save jkutner/2844419 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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