Sha256: 8cc8bc2bf125a3dc1a32a35ebead47549523a5bbe4617aa045cdcf1b3702e4ac
Contents?: true
Size: 543 Bytes
Versions: 4
Compression:
Stored size: 543 Bytes
Contents
require "test_helper" class IntegrationTest < MiniTest::Should::TestCase setup do @file = fixture_file("ruby.png") end should "create attachment and its files" do dummy = Dummy.create!(avatar: @file) assert File.file?(dummy.avatar.path), "File was not uploaded" end should "delete attachment and its files" do dummy = Dummy.create!(avatar: @file) avatar = dummy.avatar.path dummy.destroy assert !File.file?(avatar), "File was not deleted" end teardown do @file.close cleanup end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
paperclip-sftp-1.0.3 | test/integration_test.rb |
paperclip-sftp-1.0.2 | test/integration_test.rb |
paperclip-sftp-1.0.1 | test/integration_test.rb |
paperclip-sftp-1.0.0 | test/integration_test.rb |