spec/unit/processor/one_shot_spec.rb in bulldog-0.1.1 vs spec/unit/processor/one_shot_spec.rb in bulldog-0.2.0
- old
+ new
@@ -3,10 +3,10 @@
describe Processor::OneShot do
use_model_class(:Thing)
before do
Thing.has_attachment :attachment
- @thing = Thing.create(:attachment => test_empty_file)
+ @thing = Thing.create(:attachment => uploaded_file('empty.txt'))
end
def configure(&block)
Thing.attachment_reflections[:attachment].configure(&block)
end