Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tests use test/helper instead of doing everything manually

  • Loading branch information...
commit 7874cfdd4e8b5fa4b190ddd899a70eee051f25f2 1 parent 94eb291
@jyurek jyurek authored
View
1  test/database.yml
@@ -1,5 +1,4 @@
test:
adapter: sqlite3
- #dbfile: paperclip.db
database: ":memory:"
View
6 test/geometry_test.rb
@@ -1,8 +1,4 @@
-require 'rubygems'
-require 'test/unit'
-require 'shoulda'
-
-require File.join(File.dirname(__FILE__), '..', 'lib', 'paperclip', 'geometry.rb')
+require 'test/helper'
class GeometryTest < Test::Unit::TestCase
context "Paperclip::Geometry" do
View
2  test/integration_test.rb
@@ -1,4 +1,4 @@
-require 'test/helper.rb'
+require 'test/helper'
class IntegrationTest < Test::Unit::TestCase
context "Many models at once" do
View
8 test/iostream_test.rb
@@ -1,10 +1,4 @@
-require 'rubygems'
-require 'test/unit'
-require 'stringio'
-require 'tempfile'
-require 'shoulda'
-
-require File.join(File.dirname(__FILE__), '..', 'lib', 'paperclip', 'iostream.rb')
+require 'test/helper'
class IOStreamTest < Test::Unit::TestCase
context "IOStream" do
View
2  test/paperclip_test.rb
@@ -1,4 +1,4 @@
-require 'test/helper.rb'
+require 'test/helper'
class PaperclipTest < Test::Unit::TestCase
context "Calling Paperclip.run" do
View
7 test/storage_test.rb
@@ -1,9 +1,4 @@
-require 'rubygems'
-require 'test/unit'
-require 'shoulda'
-require 'right_aws'
-
-require File.join(File.dirname(__FILE__), '..', 'lib', 'paperclip', 'geometry.rb')
+require 'test/helper'
class StorageTest < Test::Unit::TestCase
context "Parsing S3 credentials" do
View
9 test/thumbnail_test.rb
@@ -1,11 +1,4 @@
-require 'rubygems'
-require 'test/unit'
-require 'shoulda'
-require 'mocha'
-require 'tempfile'
-
-require File.join(File.dirname(__FILE__), '..', 'lib', 'paperclip', 'geometry.rb')
-require File.join(File.dirname(__FILE__), '..', 'lib', 'paperclip', 'thumbnail.rb')
+require 'test/helper'
class ThumbnailTest < Test::Unit::TestCase
Please sign in to comment.
Something went wrong with that request. Please try again.