From b5c70d0445f4a276f3d1427a2f6163e3e6a51260 Mon Sep 17 00:00:00 2001 From: Reid Morrison Date: Mon, 8 Oct 2012 16:59:36 -0400 Subject: [PATCH] Use rvm to simplify 1.9 testing on the Mac --- .rvmrc | 2 ++ test/reader_test.rb | 1 + test/writer_test.rb | 1 + 3 files changed, 4 insertions(+) create mode 100644 .rvmrc diff --git a/.rvmrc b/.rvmrc new file mode 100644 index 0000000..81053e8 --- /dev/null +++ b/.rvmrc @@ -0,0 +1,2 @@ +rvm use ruby-1.9.3-p194 +export RACK_ENV=test diff --git a/test/reader_test.rb b/test/reader_test.rb index 2a63509..f0f2697 100644 --- a/test/reader_test.rb +++ b/test/reader_test.rb @@ -1,6 +1,7 @@ # Allow examples to be run in-place without requiring a gem install $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' +require 'stringio' require 'rubygems' require 'test/unit' require 'shoulda' diff --git a/test/writer_test.rb b/test/writer_test.rb index 4828d60..e36b8dc 100644 --- a/test/writer_test.rb +++ b/test/writer_test.rb @@ -1,6 +1,7 @@ # Allow examples to be run in-place without requiring a gem install $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' +require 'stringio' require 'rubygems' require 'test/unit' require 'shoulda'