Permalink
Browse files

Deal with weird load path issue on jruby.

This fixes the rspec-1 scenario so that it passes on jruby.
  • Loading branch information...
myronmarston committed Oct 5, 2010
1 parent 4d4e288 commit a981eb26933818efad59c2b12b236e17b96e5bd6
Showing with 3 additions and 2 deletions.
  1. +1 −1 features/rspec.feature
  2. +2 −1 vcr.gemspec
View
@@ -94,7 +94,7 @@ Feature: RSpec integration
end
end
"""
- When I run "ruby ./use_vcr_cassette_for_rspec_1_spec.rb"
+ When I run "ruby -I'../../lib' ./use_vcr_cassette_for_rspec_1_spec.rb"
Then the output should contain "2 examples, 0 failures"
And the file "cassettes/VCR-RSpec_integration/without_an_explicit_cassette_name.yml" should contain "You have reached this web page by typing"
And the file "cassettes/net_http_example.yml" should contain "You have reached this web page by typing"
View
@@ -1,4 +1,5 @@
-require File.expand_path("../lib/vcr/version", __FILE__)
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
+require "vcr/version"
Gem::Specification.new do |s|
s.name = "vcr"

0 comments on commit a981eb2

Please sign in to comment.