Skip to content
Browse files

* update tests so they run (expand_path on inclusion of helper)

 * added Gemfile to get tests running
  • Loading branch information...
1 parent ac8ec34 commit a32cc6dce33870174a700416ff8170d37613a147 @bunnymatic bunnymatic committed Jun 28, 2011
Showing with 95 additions and 11 deletions.
  1. +10 −0 Gemfile
  2. +75 −0 Gemfile.lock
  3. +1 −2 test/attachment_test.rb
  4. +1 −1 test/geometry_test.rb
  5. +1 −1 test/integration_test.rb
  6. +2 −2 test/iostream_test.rb
  7. +1 −1 test/paperclip_test.rb
  8. +2 −2 test/storage_test.rb
  9. +2 −2 test/thumbnail_test.rb
View
10 Gemfile
@@ -0,0 +1,10 @@
+source :rubygems
+gem 'datamapper'
+gem 'extlib'
+
+group :test do
+ gem 'aws-s3'
+ gem "dm-sqlite-adapter"
+ gem 'shoulda'
+ gem 'mocha'
+end
View
75 Gemfile.lock
@@ -0,0 +1,75 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ addressable (2.2.6)
+ aws-s3 (0.6.2)
+ builder
+ mime-types
+ xml-simple
+ bcrypt-ruby (2.1.4)
+ builder (3.0.0)
+ data_objects (0.10.6)
+ addressable (~> 2.1)
+ datamapper (1.1.0)
+ dm-aggregates (= 1.1.0)
+ dm-constraints (= 1.1.0)
+ dm-core (= 1.1.0)
+ dm-migrations (= 1.1.0)
+ dm-serializer (= 1.1.0)
+ dm-timestamps (= 1.1.0)
+ dm-transactions (= 1.1.0)
+ dm-types (= 1.1.0)
+ dm-validations (= 1.1.0)
+ dm-aggregates (1.1.0)
+ dm-core (~> 1.1.0)
+ dm-constraints (1.1.0)
+ dm-core (~> 1.1.0)
+ dm-core (1.1.0)
+ addressable (~> 2.2.4)
+ dm-do-adapter (1.1.0)
+ data_objects (~> 0.10.2)
+ dm-core (~> 1.1.0)
+ dm-migrations (1.1.0)
+ dm-core (~> 1.1.0)
+ dm-serializer (1.1.0)
+ dm-core (~> 1.1.0)
+ fastercsv (~> 1.5.4)
+ json (~> 1.4.6)
+ dm-sqlite-adapter (1.1.0)
+ dm-do-adapter (~> 1.1.0)
+ do_sqlite3 (~> 0.10.2)
+ dm-timestamps (1.1.0)
+ dm-core (~> 1.1.0)
+ dm-transactions (1.1.0)
+ dm-core (~> 1.1.0)
+ dm-types (1.1.0)
+ bcrypt-ruby (~> 2.1.4)
+ dm-core (~> 1.1.0)
+ fastercsv (~> 1.5.4)
+ json (~> 1.4.6)
+ stringex (~> 1.2.0)
+ uuidtools (~> 2.1.2)
+ dm-validations (1.1.0)
+ dm-core (~> 1.1.0)
+ do_sqlite3 (0.10.6)
+ data_objects (= 0.10.6)
+ extlib (0.9.15)
+ fastercsv (1.5.4)
+ json (1.4.6)
+ mime-types (1.16)
+ mocha (0.9.12)
+ shoulda (2.11.3)
+ stringex (1.2.1)
+ uuidtools (2.1.2)
+ xml-simple (1.1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ aws-s3
+ datamapper
+ dm-sqlite-adapter
+ extlib
+ mocha
+ shoulda
View
3 test/attachment_test.rb
@@ -1,5 +1,4 @@
-require 'test/helper'
-
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
class Dummy
# This is a dummy class
end
View
2 test/geometry_test.rb
@@ -2,7 +2,7 @@
require 'test/unit'
require 'shoulda'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'dm-paperclip', 'geometry.rb')
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'dm-paperclip', 'geometry.rb'))
class GeometryTest < Test::Unit::TestCase
context "Paperclip::Geometry" do
View
2 test/integration_test.rb
@@ -1,4 +1,4 @@
-require 'test/helper.rb'
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
class IntegrationTest < Test::Unit::TestCase
context "Many models at once" do
View
4 test/iostream_test.rb
@@ -1,4 +1,4 @@
-require 'test/helper'
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
class IOStreamTest < Test::Unit::TestCase
context "IOStream" do
@@ -75,4 +75,4 @@ class IOStreamTest < Test::Unit::TestCase
end
end
end
-end
+end
View
2 test/paperclip_test.rb
@@ -1,4 +1,4 @@
-require 'test/helper.rb'
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
class PaperclipTest < Test::Unit::TestCase
context "A DataMapper model with an 'avatar' attachment" do
View
4 test/storage_test.rb
@@ -1,4 +1,4 @@
-require 'test/helper'
+require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
require 'aws/s3'
class StorageTest < Test::Unit::TestCase
@@ -321,4 +321,4 @@ class StorageTest < Test::Unit::TestCase
end
end
end
-end
+end
View
4 test/thumbnail_test.rb
@@ -4,8 +4,8 @@
require 'mocha'
require 'tempfile'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'dm-paperclip', 'geometry.rb')
-require File.join(File.dirname(__FILE__), '..', 'lib', 'dm-paperclip', 'thumbnail.rb')
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'dm-paperclip', 'geometry.rb'))
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'dm-paperclip', 'thumbnail.rb'))
class ThumbnailTest < Test::Unit::TestCase

0 comments on commit a32cc6d

Please sign in to comment.
Something went wrong with that request. Please try again.