test/helper.rb in paperclip-2.2.9.2 vs test/helper.rb in paperclip-2.3.0
- old
+ new
@@ -1,8 +1,7 @@
require 'rubygems'
require 'test/unit'
-gem 'thoughtbot-shoulda', ">= 2.9.0"
require 'shoulda'
require 'mocha'
require 'tempfile'
gem 'sqlite3-ruby'
@@ -38,10 +37,10 @@
klass.class_eval{ include Paperclip }
klass
end
def reset_table table_name, &block
- block ||= lambda{ true }
+ block ||= lambda { |table| true }
ActiveRecord::Base.connection.create_table :dummies, {:force => true}, &block
end
def modify_table table_name, &block
ActiveRecord::Base.connection.change_table :dummies, &block