Permalink
Browse files

don't mess with the load path

  • Loading branch information...
1 parent d061f3c commit 868ab33f9786e9faabaaef23348c95ff052190e4 @ngauthier ngauthier committed with Apr 18, 2012
Showing with 3 additions and 5 deletions.
  1. +1 −1 Gemfile
  2. +1 −2 Rakefile
  3. +1 −2 fakes3.gemspec
View
2 Gemfile
@@ -1,4 +1,4 @@
source :rubygems
-
+gem 'fakes3', :path => '.' # for dev and test, use local fakes3
# Specify your gem's dependencies in fakes3.gemspec
gemspec
View
3 Rakefile
@@ -5,9 +5,8 @@ include Rake::DSL
Bundler::GemHelper.install_tasks
Rake::TestTask.new(:test) do |t|
+ t.libs << "."
t.test_files = FileList['test/*_test.rb']
- t.ruby_opts = ['-rubygems'] if defined? Gem
- t.ruby_opts << '-I.'
end
desc "Run the test_server"
View
3 fakes3.gemspec
@@ -1,6 +1,5 @@
# -*- encoding: utf-8 -*-
-$:.push File.expand_path("../lib", __FILE__)
-require "fakes3/version"
+require File.join(File.dirname(__FILE__), 'lib', 'fakes3', 'version')
Gem::Specification.new do |s|
s.name = "fakes3"

0 comments on commit 868ab33

Please sign in to comment.