Skip to content

Commit

Permalink
create spec tmp directory first
Browse files Browse the repository at this point in the history
  • Loading branch information
grobie committed Aug 7, 2010
1 parent 1196289 commit 4d3ab6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/eu_central_bank_spec.rb
Expand Up @@ -2,11 +2,16 @@
require 'yaml'

describe "EuCentralBank" do
before(:all) do
@tmp_cache_directory = File.expand_path(File.dirname(__FILE__) + '/tmp')
Dir.mkdir(@tmp_cache_directory) unless File.exists?(@tmp_cache_directory)
end

before(:each) do
@bank = EuCentralBank.new
@cache_path = File.expand_path(File.dirname(__FILE__) + '/exchange_rates.xml')
@yml_cache_path = File.expand_path(File.dirname(__FILE__) + '/exchange_rates.yml')
@tmp_cache_path = File.expand_path(File.dirname(__FILE__) + '/tmp/exchange_rates.xml')
@tmp_cache_path = File.expand_path(@tmp_cache_directory + '/exchange_rates.xml')
end

after(:each) do
Expand Down

0 comments on commit 4d3ab6d

Please sign in to comment.