spec/lib/ec2ssh/cli_spec.rb in ec2ssh-2.0.0 vs spec/lib/ec2ssh/cli_spec.rb in ec2ssh-2.0.1

- old
+ new

@@ -13,10 +13,13 @@ ] end end end end + before do + File.delete(dotfile_path) if File.exist?(dotfile_path) + end let(:cli) { described_class } let(:ssh_config_path) do path = tmp_dir.join('ssh_config') path.open('w') {|f| f.write <<-END } Host foo.bar.com @@ -31,10 +34,10 @@ around do |example| tz = ENV['TZ'] ENV['TZ'] = 'UTC' Timecop.freeze(Time.local(2013,1,1,0,0,0)) { example.call } - ENV['TZ'] = 'tz' + ENV['TZ'] = tz end subject { ssh_config_string } describe '#init' do