From: | "Hans de Graaff (graaff)" <graaff@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/treetop/files: treetop-1.4.7-fix-tmpdir.patch |
Date: | Sun, 30 May 2010 09:08:44 |
Message-Id: | 20100530090840.0F43E2CF2B@corvid.gentoo.org |
1 | graaff 10/05/30 09:08:39 |
2 | |
3 | Added: treetop-1.4.7-fix-tmpdir.patch |
4 | Log: |
5 | Version bump. Fix (new) broken specs and run them. Drop keywords due to new dependency: #322053. |
6 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/treetop/files/treetop-1.4.7-fix-tmpdir.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/treetop/files/treetop-1.4.7-fix-tmpdir.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/treetop/files/treetop-1.4.7-fix-tmpdir.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: treetop-1.4.7-fix-tmpdir.patch |
15 | =================================================================== |
16 | diff --git a/spec/compiler/tt_compiler_spec.rb b/spec/compiler/tt_compiler_spec.rb |
17 | index a453ad5..946691c 100644 |
18 | --- a/spec/compiler/tt_compiler_spec.rb |
19 | +++ b/spec/compiler/tt_compiler_spec.rb |
20 | @@ -8,11 +8,13 @@ ENV['PATH'] = File.expand_path(File.dirname(__FILE__) + '../../../bin' + |
21 | $LOAD_PATH.unshift(File.expand_path('../../../../lib', __FILE__)) |
22 | |
23 | describe "The 'tt' comand line compiler" do |
24 | + before(:each) do |
25 | + @tmpdir = Dir.tmpdir |
26 | + end |
27 | |
28 | context 'when processing a single grammar file' do |
29 | before(:each) do |
30 | # create a fresh but dumb grammar file for each example |
31 | - @tmpdir = Dir.tmpdir |
32 | @test_base = "dumb-#{rand(1000)}" |
33 | @test_path = "#{@tmpdir}/#{@test_base}" |
34 | @test_grammar = "#{@test_path}.tt" |