Permalink
Browse files

Get more specific on the loading of lib/fake_web/VERSION, as I was ha…

…ving load errors
  • Loading branch information...
1 parent 53c6713 commit a21fd565285d1ec545c002150d9863ecf56cba6d @Empact committed Dec 18, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 fakeweb.gemspec
  2. +1 −1 lib/fake_web.rb
View
2 fakeweb.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Chris Kampmeier", "Blaine Cook"]
- s.date = %q{2009-11-02}
+ s.date = %q{2009-12-18}
s.description = %q{FakeWeb is a helper for faking web requests in Ruby. It works at a global level, without modifying code or writing extensive stubs.}
s.email = ["chris@kampers.net", "romeda@gmail.com"]
s.extra_rdoc_files = [
View
2 lib/fake_web.rb
@@ -13,7 +13,7 @@
module FakeWeb
# Returns the version string for the copy of FakeWeb you have loaded.
- VERSION = File.read("lib/fake_web/VERSION").strip
+ VERSION = File.read(File.join(File.dirname(__FILE__), "fake_web/VERSION")).strip
# Resets the FakeWeb Registry. This will force all subsequent web requests to
# behave as real requests.

0 comments on commit a21fd56

Please sign in to comment.