Browse files

remove LOAD_PATH shenanigans from specs

  • Loading branch information...
1 parent aba1a81 commit 3401179921d41a7767049a738591cdfe2db59492 @yob committed Jul 19, 2011
View
1 spec/buffer_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::Buffer, "token method" do
View
1 spec/callback_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
# These specs are a safety net to ensure all of our callbacks provide a consistant
View
1 spec/cmap_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
class PDF::Reader::CMap
View
1 spec/encoding_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::Encoding do
View
1 spec/filter_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::Filter do
View
1 spec/font_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::Font do
View
1 spec/lzw_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::LZW do
View
1 spec/meta_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
# These specs are a kind of "meta spec". They're not unit testing small pieces
View
1 spec/metadata_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::MetadataStrategy do
View
1 spec/new_reader_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader do
View
1 spec/object_hash_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::ObjectHash do
View
1 spec/object_stream_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::ObjectStream, "[] method" do
View
1 spec/page_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::Page, "fonts()" do
View
1 spec/pages_strategy_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
class PDF::Reader::PagesStrategy
View
1 spec/parser_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::Parser do
View
1 spec/reader_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader, "file class method" do
View
1 spec/reference_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::Reference, "hash method" do
View
1 spec/stream_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
describe PDF::Reader::Stream do
View
1 spec/xref_spec.rb
@@ -1,6 +1,5 @@
# coding: utf-8
-$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
require File.dirname(__FILE__) + "/spec_helper"
# expose the xrefs hash inside the XRef class so we can ensure it's built correctly

0 comments on commit 3401179

Please sign in to comment.