Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Tweak rspec before blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Dec 30, 2012
1 parent d74b54b commit d31d607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Expand Up @@ -5,13 +5,13 @@

config.order = 'random'

config.before(:suite) do
config.before do
@original_home = ENV['HOME']
new_home = File.expand_path("./tmp/fakehome")
ENV['HOME'] = new_home
end

config.after(:suite) do
config.after do
ENV['HOME'] = @original_home
end
end
Expand Down

0 comments on commit d31d607

Please sign in to comment.