spec/unit/attachment_spec.rb in bulldog-0.1.1 vs spec/unit/attachment_spec.rb in bulldog-0.2.0
- old
+ new
@@ -28,10 +28,10 @@
end
end
describe "when the stream is not nil" do
before do
- @stream = Stream.new(test_image_file)
+ @stream = Stream.new(temporary_file('test.jpg'))
end
it "should return a Base attachment" do
attachment = Attachment.of_type(@type, @thing, :attachment, @stream)
attachment.should be_a(Attachment::Base)