Skip to content

Commit

Permalink
adjust load path to avoid expand_path copy / paste.
Browse files Browse the repository at this point in the history
Individual files must be run as:

  $ ruby -I lib:test test/whatever_test.rb

All tests:

  $ rake test
  • Loading branch information
tenderlove committed Jun 12, 2012
1 parent bbfc993 commit cdee343
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -43,7 +43,7 @@ task :cover do
end

Rake::TestTask.new do |t|
t.libs << 'lib'
t.libs << 'lib:test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
Expand Down
2 changes: 1 addition & 1 deletion test/blob_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"

context "Rugged::Blob tests" do
setup do
Expand Down
2 changes: 1 addition & 1 deletion test/commit_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"

context "Rugged::Commit tests" do
setup do
Expand Down
2 changes: 1 addition & 1 deletion test/config_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"

context "Rugged::Config tests" do
setup do
Expand Down
2 changes: 1 addition & 1 deletion test/index_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"
require 'base64'
require 'tempfile'
require 'fileutils'
Expand Down
2 changes: 1 addition & 1 deletion test/lib_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"
require 'base64'

context "Rugged::Lib stuff" do
Expand Down
2 changes: 1 addition & 1 deletion test/object_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"
require 'base64'

context "Rugged::Object stuff" do
Expand Down
2 changes: 1 addition & 1 deletion test/reference_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"

context "Rugged::Reference stuff" do
setup do
Expand Down
2 changes: 1 addition & 1 deletion test/remote_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"

context "Rugged::Tag tests" do
setup do
Expand Down
2 changes: 1 addition & 1 deletion test/repo_pack_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"
require 'base64'

context "Rugged::Repository packed stuff" do
Expand Down
2 changes: 1 addition & 1 deletion test/repo_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require 'test_helper'
require 'base64'

context "Rugged::Repository stuff" do
Expand Down
2 changes: 1 addition & 1 deletion test/tag_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"

context "Rugged::Tag tests" do
setup do
Expand Down
2 changes: 1 addition & 1 deletion test/tree_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"

context "Rugged::Tree tests" do
setup do
Expand Down
2 changes: 1 addition & 1 deletion test/walker_test.rb
@@ -1,4 +1,4 @@
require File.expand_path "../test_helper", __FILE__
require "test_helper"
require 'base64'

context "Rugged::Walker stuff" do
Expand Down

0 comments on commit cdee343

Please sign in to comment.