Skip to content

Commit

Permalink
Remove use of Dir.mktmpdir to get build to pass on JRuby.
Browse files Browse the repository at this point in the history
The travis JRuby builds are intermittently failing with "permission denied" errors from `Dir.mktmpdir`.
  • Loading branch information
myronmarston committed Nov 15, 2011
1 parent 34e4ee6 commit 906dc11
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions spec/vcr/cassette/migrator_spec.rb
Expand Up @@ -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.
Expand Down

0 comments on commit 906dc11

Please sign in to comment.