Commit 7874cfdd by Jon Yurek

Tests use test/helper instead of doing everything manually

parent 94eb2916
test: test:
adapter: sqlite3 adapter: sqlite3
#dbfile: paperclip.db
database: ":memory:" database: ":memory:"
require 'rubygems' require 'test/helper'
require 'test/unit'
require 'shoulda'
require File.join(File.dirname(__FILE__), '..', 'lib', 'paperclip', 'geometry.rb')
class GeometryTest < Test::Unit::TestCase class GeometryTest < Test::Unit::TestCase
context "Paperclip::Geometry" do context "Paperclip::Geometry" do
......
require 'test/helper.rb' require 'test/helper'
class IntegrationTest < Test::Unit::TestCase class IntegrationTest < Test::Unit::TestCase
context "Many models at once" do context "Many models at once" do
......
require 'rubygems' require 'test/helper'
require 'test/unit'
require 'stringio'
require 'tempfile'
require 'shoulda'
require File.join(File.dirname(__FILE__), '..', 'lib', 'paperclip', 'iostream.rb')
class IOStreamTest < Test::Unit::TestCase class IOStreamTest < Test::Unit::TestCase
context "IOStream" do context "IOStream" do
......
require 'test/helper.rb' require 'test/helper'
class PaperclipTest < Test::Unit::TestCase class PaperclipTest < Test::Unit::TestCase
context "Calling Paperclip.run" do context "Calling Paperclip.run" do
......
require 'rubygems' require 'test/helper'
require 'test/unit'
require 'shoulda'
require 'right_aws'
require File.join(File.dirname(__FILE__), '..', 'lib', 'paperclip', 'geometry.rb')
class StorageTest < Test::Unit::TestCase class StorageTest < Test::Unit::TestCase
context "Parsing S3 credentials" do context "Parsing S3 credentials" do
......
require 'rubygems' require 'test/helper'
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')
class ThumbnailTest < Test::Unit::TestCase class ThumbnailTest < Test::Unit::TestCase
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment