blob: f7fa882c15cbde4d2f4c004919abdb9a72337ac3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff --git a/spec/compiler/tt_compiler_spec.rb b/spec/compiler/tt_compiler_spec.rb
index a453ad5..946691c 100644
--- a/spec/compiler/tt_compiler_spec.rb
+++ b/spec/compiler/tt_compiler_spec.rb
@@ -8,11 +8,13 @@ ENV['PATH'] = File.expand_path(File.dirname(__FILE__) + '../../../bin' +
$LOAD_PATH.unshift(File.expand_path('../../../../lib', __FILE__))
describe "The 'tt' comand line compiler" do
+ before(:each) do
+ @tmpdir = Dir.tmpdir
+ end
context 'when processing a single grammar file' do
before(:each) do
# create a fresh but dumb grammar file for each example
- @tmpdir = Dir.tmpdir
@test_base = "dumb-#{rand(1000)}"
@test_path = "#{@tmpdir}/#{@test_base}"
@test_grammar = "#{@test_path}.tt"
|