Browse files

Fix issue with RubyInline

  • Loading branch information...
1 parent 18c77ba commit 7c62e511c8df6b7b9d2e3c12c44aca9c4e8953a1 @jgdavey jgdavey committed Jan 31, 2011
Showing with 10 additions and 3 deletions.
  1. +4 −3 spec/spec_helper.rb
  2. +6 −0 spec/support/inline.rb
View
7 spec/spec_helper.rb
@@ -1,7 +1,8 @@
require 'rubygems'
require 'bundler/setup'
-Bundler.require
+require 'rspec'
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+root = File.expand_path('../..', __FILE__)
+Dir["#{root}/spec/support/**/*.rb"].each {|f| require f}
-require 'qrencoder'
+Bundler.require
View
6 spec/support/inline.rb
@@ -0,0 +1,6 @@
+require 'tempfile'
+temp = Tempfile.new('ruby_inline', '/tmp')
+dir = temp.path
+temp.delete
+Dir.mkdir(dir, 0755)
+ENV['INLINEDIR'] = dir

0 comments on commit 7c62e51

Please sign in to comment.