Skip to content

Commit

Permalink
Update helper require paths for Ruby 1.9.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lardawge committed Nov 9, 2010
1 parent b255f33 commit 553df79
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion test/attachment_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
# encoding: utf-8 # encoding: utf-8
require 'test/helper' require './test/helper'


class Dummy class Dummy
# This is a dummy class # This is a dummy class
Expand Down
2 changes: 1 addition & 1 deletion test/command_line_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class CommandLineTest < Test::Unit::TestCase class CommandLineTest < Test::Unit::TestCase
def setup def setup
Expand Down
2 changes: 1 addition & 1 deletion test/geometry_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class GeometryTest < Test::Unit::TestCase class GeometryTest < Test::Unit::TestCase
context "Paperclip::Geometry" do context "Paperclip::Geometry" do
Expand Down
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def setup


require File.join(ROOT, 'lib', 'paperclip.rb') require File.join(ROOT, 'lib', 'paperclip.rb')


require 'shoulda_macros/paperclip' require './shoulda_macros/paperclip'


FIXTURES_DIR = File.join(File.dirname(__FILE__), "fixtures") FIXTURES_DIR = File.join(File.dirname(__FILE__), "fixtures")
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml')) config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
Expand Down
2 changes: 1 addition & 1 deletion test/integration_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' 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
Expand Down
2 changes: 1 addition & 1 deletion test/interpolations_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class InterpolationsTest < Test::Unit::TestCase class InterpolationsTest < Test::Unit::TestCase
should "return all methods but the infrastructure when sent #all" do should "return all methods but the infrastructure when sent #all" do
Expand Down
2 changes: 1 addition & 1 deletion test/iostream_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class IOStreamTest < Test::Unit::TestCase class IOStreamTest < Test::Unit::TestCase
include IOStream include IOStream
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/have_attached_file_matcher_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class HaveAttachedFileMatcherTest < Test::Unit::TestCase class HaveAttachedFileMatcherTest < Test::Unit::TestCase
context "have_attached_file" do context "have_attached_file" do
Expand Down
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class ValidateAttachmentContentTypeMatcherTest < Test::Unit::TestCase class ValidateAttachmentContentTypeMatcherTest < Test::Unit::TestCase
context "validate_attachment_content_type" do context "validate_attachment_content_type" do
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/validate_attachment_presence_matcher_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class ValidateAttachmentPresenceMatcherTest < Test::Unit::TestCase class ValidateAttachmentPresenceMatcherTest < Test::Unit::TestCase
context "validate_attachment_presence" do context "validate_attachment_presence" do
Expand Down
2 changes: 1 addition & 1 deletion test/matchers/validate_attachment_size_matcher_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class ValidateAttachmentSizeMatcherTest < Test::Unit::TestCase class ValidateAttachmentSizeMatcherTest < Test::Unit::TestCase
context "validate_attachment_size" do context "validate_attachment_size" do
Expand Down
2 changes: 1 addition & 1 deletion test/paperclip_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class PaperclipTest < Test::Unit::TestCase class PaperclipTest < Test::Unit::TestCase
context "Calling Paperclip.run" do context "Calling Paperclip.run" do
Expand Down
2 changes: 1 addition & 1 deletion test/processor_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class ProcessorTest < Test::Unit::TestCase class ProcessorTest < Test::Unit::TestCase
should "instantiate and call #make when sent #make to the class" do should "instantiate and call #make when sent #make to the class" do
Expand Down
2 changes: 1 addition & 1 deletion test/storage_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'
require 'aws/s3' require 'aws/s3'


class StorageTest < Test::Unit::TestCase class StorageTest < Test::Unit::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/style_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,5 @@
# encoding: utf-8 # encoding: utf-8
require 'test/helper' require './test/helper'


class StyleTest < Test::Unit::TestCase class StyleTest < Test::Unit::TestCase


Expand Down
2 changes: 1 addition & 1 deletion test/thumbnail_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class ThumbnailTest < Test::Unit::TestCase class ThumbnailTest < Test::Unit::TestCase


Expand Down
2 changes: 1 addition & 1 deletion test/upfile_test.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test/helper' require './test/helper'


class UpfileTest < Test::Unit::TestCase class UpfileTest < Test::Unit::TestCase
{ %w(jpg jpe jpeg) => 'image/jpeg', { %w(jpg jpe jpeg) => 'image/jpeg',
Expand Down

0 comments on commit 553df79

Please sign in to comment.