Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Gemfile, updated tests

  • Loading branch information...
commit da682df99f1792ce9694448cd4d4fa8f2015a932 1 parent a1a3be2
@auser authored
View
1  .rvmrc
@@ -0,0 +1 @@
+rvm use ruby-1.9.2@poolparty --create
View
17 Gemfile
@@ -0,0 +1,17 @@
+source "http://www.rubygems.org"
+
+gemspec
+
+gem 'aws'
+gem 'git-style-binaries'
+
+group :test do
+ gem 'fakeweb'
+ gem 'shoulda'
+ gem 'rcov'
+ gem 'mocha'
+end
+
+group :development do
+ gem 'jeweler'
+end
View
42 Gemfile.lock
@@ -0,0 +1,42 @@
+PATH
+ remote: .
+ specs:
+ poolparty (1.6.9)
+
+GEM
+ remote: http://www.rubygems.org/
+ specs:
+ aws (2.5.3)
+ http_connection
+ uuidtools
+ xml-simple
+ fakeweb (1.3.0)
+ git (1.2.5)
+ git-style-binaries (0.1.11)
+ shoulda
+ trollop
+ http_connection (1.4.1)
+ jeweler (1.6.2)
+ bundler (~> 1.0)
+ git (>= 1.2.5)
+ rake
+ mocha (0.9.12)
+ rake (0.9.1)
+ rcov (0.9.9)
+ shoulda (2.11.3)
+ trollop (1.16.2)
+ uuidtools (2.1.2)
+ xml-simple (1.0.16)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ aws
+ fakeweb
+ git-style-binaries
+ jeweler
+ mocha
+ poolparty!
+ rcov
+ shoulda
View
15 Rakefile
@@ -1,3 +1,4 @@
+$:.unshift(File.join(File.dirname(__FILE__), "."))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
@@ -34,10 +35,16 @@ end
# sh "ruby -Ilib:test #{Dir["#{File.dirname(__FILE__)}/../test/poolparty/*/*.rb"].join(" ")}"
# end
-Rake::TestTask.new(:test) do |t|
- t.test_files = FileList['test/lib/**/*_test.rb']
- t.warning = false
- t.verbose = false
+# Rake::TestTask.new(:test) do |t|
+# t.test_files = FileList['test/lib/**/*_test.rb']
+# t.warning = false
+# t.verbose = false
+# end
+
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
end
begin
View
0  bin/cloud-rsync 100644 → 100755
File mode changed
View
0  bin/cloud-vnc 100644 → 100755
File mode changed
View
2  test/lib/core/array_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require "test_helper"
class ArrayTest < Test::Unit::TestCase
def setup
View
2  test/lib/core/hash_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require 'test_helper'
class HashTest < Test::Unit::TestCase
context "Hash" do
View
2  test/lib/core/object_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require 'test_helper'
class ObjectTest < Test::Unit::TestCase
context "object" do
View
2  test/lib/core/string_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require 'test_helper'
class StringTest < Test::Unit::TestCase
context "string" do
View
2  test/lib/core/symbol_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require 'test_helper'
class SymbolTest < Test::Unit::TestCase
context "Symbol" do
View
2  test/lib/poolparty/cloud_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require 'test_helper'
# require 'rr'
stub_ec2_calls
View
2  test/lib/poolparty/keypair_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require 'test_helper'
Keypair.searchable_paths << fixtures_dir/"keys"
View
2  test/lib/poolparty/pool_party_error_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require 'test_helper'
class PoolPartyErrorTest < Test::Unit::TestCase
include PoolParty
View
2  test/lib/poolparty/pool_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require 'test_helper'
stub_keypair_searchable_paths
View
2  test/lib/poolparty/rds_test.rb
@@ -1,4 +1,4 @@
-require "#{File.dirname(__FILE__)}/../../test_helper"
+require 'test_helper'
stub_ec2_calls
class RdsTest < Test::Unit::TestCase
View
7 test/test_helper.rb
@@ -1,5 +1,7 @@
-$:.unshift(::File.dirname(__FILE__))
-$:.unshift(::File.dirname(__FILE__) + "/../lib")
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+
+ENV['RACK_ENV'] ||= 'test'
# Test dependencies
%w(fakeweb right_http_connection matchy shoulda).each do |dep|
@@ -18,6 +20,7 @@
)
require 'poolparty'
+
require "rubygems"
require "test/unit"
# TODO: Rip out shoulda
View
2  test/test_methods.rb
@@ -19,7 +19,7 @@ def modify_env_with_hash(h={})
orig_env[k] = v
orig_env[k].freeze
end
- Kernel.send :remove_const, :ENV if Kernel.const_defined?(:ENV)
+ # Kernel.send :remove_const, :ENV if Kernel.const_defined?(:ENV)
Kernel.const_set(:ENV, orig_env)
end
Please sign in to comment.
Something went wrong with that request. Please try again.