Skip to content
Browse files

Remove use of Dir.mktmpdir to get build to pass on JRuby.

The travis JRuby builds are intermittently failing with "permission denied" errors from `Dir.mktmpdir`.
  • Loading branch information...
1 parent 34e4ee6 commit 906dc11094e99795d5d52e78ec1fa8dcf0c160d7 @myronmarston myronmarston committed Nov 14, 2011
Showing with 5 additions and 6 deletions.
  1. +5 −6 spec/vcr/cassette/migrator_spec.rb
View
11 spec/vcr/cassette/migrator_spec.rb
@@ -84,13 +84,12 @@
EOF
}
- attr_accessor :dir
+ let(:dir) { './tmp/migrator' }
- around(:each) do |example|
- Dir.mktmpdir do |dir|
- self.dir = dir
- example.run
- end
+ before(:each) do
+ # ensure the directory is empty
+ FileUtils.rm_rf dir
+ FileUtils.mkdir_p dir
end
# JRuby serializes YAML with some slightly different whitespace.

0 comments on commit 906dc11

Please sign in to comment.
Something went wrong with that request. Please try again.