Permalink
Browse files

Fix how spec_helper is required

  • Loading branch information...
1 parent b4c7d11 commit 84731ebcca00a24ec3d27dccf60bb28066989c9b @copiousfreetime committed Oct 3, 2012
@@ -1,4 +1,4 @@
-require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) )
+require 'spec_helper'
class AggregateTest1 < ::Amalgalite::Aggregate
def initialize
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb"))
+require 'spec_helper'
describe Amalgalite do
end
View
@@ -1,4 +1,4 @@
-require File.expand_path( File.join( File.dirname(__FILE__), 'spec_helper'))
+require 'spec_helper'
describe Amalgalite::Blob do
@@ -1,4 +1,5 @@
-$: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib"))
+require 'spec_helper'
+
require 'amalgalite'
require 'amalgalite/boolean'
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper.rb' ) )
+require 'spec_helper'
class BusyHandlerTest < Amalgalite::BusyHandler
attr_accessor :call_count
@@ -1,7 +1,5 @@
+require 'spec_helper'
-require File.expand_path( File.join( File.dirname(__FILE__), 'spec_helper'))
-
-$: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib"))
require 'thread'
require 'amalgalite'
require 'amalgalite/taps/io'
@@ -1,4 +1,4 @@
-$: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib"))
+require 'spec_helper'
require 'amalgalite/type_maps/default_map'
describe Amalgalite::TypeMaps::DefaultMap do
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb"))
+require 'spec_helper'
describe "Scalar SQL Functions" do
@@ -1,4 +1,5 @@
-require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb"))
+require 'spec_helper'
+
require 'date'
require 'time'
View
@@ -1,4 +1,5 @@
-require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb"))
+require 'spec_helper'
+
require 'amalgalite/packer'
describe "Amalgalite::Packer" do
View
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb"))
+require 'spec_helper'
describe Amalgalite::Paths do
before(:each) do
@@ -1,4 +1,4 @@
-require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) )
+require 'spec_helper'
class PH < ::Amalgalite::ProgressHandler
attr_reader :call_count
@@ -1,5 +1,4 @@
-require File.expand_path( File.join( File.dirname(__FILE__), 'spec_helper'))
-$: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib"))
+require 'spec_helper'
require 'amalgalite/requires'
#describe Amalgalite::Requires do
View
@@ -1,4 +1,5 @@
-require File.expand_path( File.join( File.dirname(__FILE__), 'spec_helper'))
+require 'spec_helper'
+
#
# Example from http://sqlite.org/rtree.html
#
View
@@ -1,4 +1,4 @@
-require File.expand_path( File.join( File.dirname(__FILE__), 'spec_helper'))
+require 'spec_helper'
require 'amalgalite'
require 'amalgalite/schema'
View
@@ -1,4 +1,3 @@
-require 'rubygems'
require 'rspec'
require 'amalgalite'
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__),%w[ .. spec_helper.rb ]))
+require 'spec_helper'
require 'amalgalite/sqlite3/constants'
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper.rb"))
+require 'spec_helper'
require 'amalgalite/sqlite3'
require 'rbconfig'
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper.rb"))
+require 'spec_helper'
require 'amalgalite/sqlite3'
require 'rbconfig'
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__),"..","spec_helper.rb"))
+require 'spec_helper'
require 'amalgalite/sqlite3/version'
describe "Amalgalite::SQLite3::Version" do
@@ -1,4 +1,4 @@
-require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) )
+require 'spec_helper'
describe Amalgalite::Statement do
before(:each) do
@@ -1,4 +1,4 @@
-require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) )
+require 'spec_helper'
require 'amalgalite/type_maps/storage_map'
describe Amalgalite::TypeMaps::StorageMap do
View
@@ -1,4 +1,4 @@
-require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) )
+require 'spec_helper'
require 'amalgalite'
require 'amalgalite/trace_tap'
@@ -1,4 +1,4 @@
-require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) )
+require 'spec_helper'
require 'amalgalite/type_maps/text_map'
describe Amalgalite::TypeMaps::TextMap do
@@ -1,4 +1,4 @@
-require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) )
+require 'spec_helper'
require 'amalgalite/type_map'
describe Amalgalite::TypeMap do
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb"))
+require 'spec_helper'
require 'amalgalite/version'
describe "Amalgalite::VERSION" do

0 comments on commit 84731eb

Please sign in to comment.