spec helper is in the load path, so no need for expand_path funny business

This commit is contained in:
Aaron Patterson 2010-07-06 15:41:44 -07:00
parent c38525d11a
commit a265d36571
5 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
require 'spec_helper'
require 'rubygems'
require 'active_record'
require 'active_record/connection_adapters/mysql2_adapter'

View File

@ -1,5 +1,5 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
require 'spec_helper'
require 'mysql2/em'
describe Mysql2::EM::Client do
@ -23,4 +23,4 @@ describe Mysql2::EM::Client do
results[0].keys.should include("second_query")
results[1].keys.should include("first_query")
end
end
end

View File

@ -1,5 +1,5 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
require 'spec_helper'
describe Mysql2::Client do
before(:each) do
@ -190,4 +190,4 @@ describe Mysql2::Client do
@client.affected_rows.should eql(1)
end
end
end
end

View File

@ -1,5 +1,5 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
require 'spec_helper'
describe Mysql2::Error do
before(:each) do
@ -13,4 +13,4 @@ describe Mysql2::Error do
it "should respond to #sql_state" do
@error.should respond_to(:sql_state)
end
end
end

View File

@ -1,5 +1,5 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
require 'spec_helper'
describe Mysql2::Result do
before(:all) do
@ -331,4 +331,4 @@ describe Mysql2::Result do
end
end
end
end
end