Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Commit

Permalink
Remove unused, unnamed RSpec context.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathankleyn committed Oct 6, 2015
1 parent b6a39e1 commit 1a27f9f
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,3 @@
mocks.verify_partial_doubles = true
end
end

RSpec.shared_context('') do
around do |example|
FileUtils.touch(File.join(root, '.shanty.yml'))
project_paths.each do |project_path|
FileUtils.mkdir_p(project_path)
end

Dir.chdir(root) do
example.run
end

FileUtils.rm_rf(root)
end

# We have to use `realpath` for this as, at least on Mac OS X, the temporary
# dir path that is returned is actually a symlink. Shanty resolves this
# internally, so if we want to compare to any of the paths correctly we'll
# need to resolve it too.
let(:root) { Pathname.new(Dir.mktmpdir('shanty-test')).realpath }
let(:project_paths) do
{
one: File.join(root, 'one'),
two: File.join(root, 'two'),
three: File.join(root, 'two', 'three')
}
end
let(:project_path) { project_paths.first }
end

0 comments on commit 1a27f9f

Please sign in to comment.