Skip to content

Commit

Permalink
Fix to prevent specs trying to create files in /, thanks graff
Browse files Browse the repository at this point in the history
  • Loading branch information
cjheath committed May 31, 2010
1 parent 5b41cbc commit dcb75ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/treetop/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Treetop #:nodoc:
module VERSION #:nodoc:
MAJOR = 1
MINOR = 4
TINY = 7
TINY = 8

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down
4 changes: 3 additions & 1 deletion spec/compiler/tt_compiler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
$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"
Expand Down

0 comments on commit dcb75ae

Please sign in to comment.