Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save atoulme/457850 to your computer and use it in GitHub Desktop.
Save atoulme/457850 to your computer and use it in GitHub Desktop.
diff --git a/test/rails_test.rb b/test/rails_test.rb
index cf33f93..7d55694 100644
--- a/test/rails_test.rb
+++ b/test/rails_test.rb
@@ -183,6 +183,7 @@ $:.delete_if { |path| path[/gems\\/vanity-\\d/] }
$:.unshift File.expand_path("../lib")
RAILS_ROOT = File.expand_path(".")
RAILS_ENV = "production"
+require "rubygems"
require "initializer"
require "active_support"
Rails.configuration = Rails::Configuration.new
@@ -193,7 +194,7 @@ require "vanity"
tmp.write code
tmp.flush
Dir.chdir "tmp" do
- open("|ruby #{tmp.path}").read
+ open("|/users/antoine/w/git/rubinius/bin/rbx #{tmp.path}").read
end
rescue
tmp.close!
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 8ca7317..a4ce065 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -2,6 +2,7 @@ $LOAD_PATH.delete_if { |path| path[/gems\/vanity-\d/] }
$LOAD_PATH.unshift File.expand_path("../lib", File.dirname(__FILE__))
RAILS_ROOT = File.expand_path("..")
require "test/unit"
+require "rubygems"
require "mocha"
require "action_controller"
require "action_controller/test_case"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment