Skip to content

Commit 86c5c84

Browse files
committed
Fix tests
1 parent 7affad0 commit 86c5c84

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

spec/fixtures/project/.code_manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ bar:
44
- "/foo/bar.txt"
55
no_bar:
66
- "*foo"
7-
- "!spec/fixtures/foo/bar*"
7+
- "!foo/bar*"

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
1818

1919
require 'code_manifest'
20+
require 'fileutils'
2021

2122
RSpec.configure do |config|
2223
# rspec-expectations config goes here. You can use an alternate
@@ -100,6 +101,7 @@
100101
Kernel.srand config.seed
101102

102103
config.around do |example|
104+
FileUtils.mkdir_p('tmp')
103105
FileUtils.cp_r('spec/fixtures/project', 'tmp')
104106
Dir.chdir('tmp/project') do
105107
# Reset the root.

0 commit comments

Comments
 (0)