Permalink
Browse files

Setting encodings and fixing arity so the tests actually run

  • Loading branch information...
1 parent 121609f commit 318d0b2908393a908957f6b4a43eb3cb116eacb4 @qrush qrush committed Jun 30, 2009
Showing with 3 additions and 1 deletion.
  1. +1 −0 lib/paperclip/attachment.rb
  2. +1 −0 test/attachment_test.rb
  3. +1 −1 test/helper.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Paperclip
# The Attachment class manages the files for a given attachment. It saves
# when the model saves, deletes when the model is destroyed, and processes
View
@@ -1,3 +1,4 @@
+# encoding: utf-8
require 'test/helper'
class Dummy
View
@@ -40,7 +40,7 @@ def reset_class class_name
end
def reset_table table_name, &block
- block ||= lambda{ true }
+ block ||= lambda { |table| true }
ActiveRecord::Base.connection.create_table :dummies, {:force => true}, &block
end

0 comments on commit 318d0b2

Please sign in to comment.