Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix relative-path inclusion to work with Ruby 1.9.2 and later. #54

Open
wants to merge 1 commit into from

1 participant

@Flameeyes

Hello,

this patch is required for amazon-ec2 to run its tests properly on Ruby 1.9.2 with the new load path handling.

HTH,
Diego

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
2  test/test_Autoscaling_groups.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "autoscaling " do
before do
View
2  test/test_EC2.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "The EC2 method " do
View
2  test/test_EC2_availability_zones.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "EC2 availability zones" do
View
2  test/test_EC2_console.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "The EC2 console " do
View
2  test/test_EC2_elastic_ips.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "EC2 elastic IP addresses " do
View
2  test/test_EC2_image_attributes.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "EC2 image_attributes " do
View
2  test/test_EC2_images.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "An EC2 image " do
View
2  test/test_EC2_instances.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "EC2 instances " do
View
2  test/test_EC2_keypairs.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "EC2 keypairs " do
View
2  test/test_EC2_password.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "The EC2 password " do
View
2  test/test_EC2_products.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "An EC2 instance " do
View
2  test/test_EC2_responses.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "The Response classes " do
View
2  test/test_EC2_s3_xmlsimple.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
# NOTE : These tests exercise amazon-ec2 when used with the aws/s3 gem
# which was demonstrating some breaking behavior. The fix was to
View
2  test/test_EC2_security_groups.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "EC2 security groups " do
View
2  test/test_EC2_snapshots.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "EC2 snaphots " do
View
2  test/test_EC2_spot_instance_requests.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "An EC2 spot instances request " do
View
2  test/test_EC2_spot_prices.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "Spot price history " do
View
2  test/test_EC2_subnets.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "The EC2 subnets " do
View
2  test/test_EC2_volumes.rb
@@ -8,7 +8,7 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "EC2 volumes " do
View
2  test/test_ELB_load_balancers.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "elb load balancers " do
before do
View
2  test/test_RDS.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper.rb'
+require File.expand_path('../test_helper.rb', __FILE__)
context "rds databases " do
before do
View
2  test/test_helper.rb
@@ -19,5 +19,5 @@
end
}
-require File.dirname(__FILE__) + '/../lib/AWS'
+require File.expand_path('../../lib/AWS', __FILE__)
Something went wrong with that request. Please try again.