Sha256: fa3609a95898b77e06d6c9457cffa2e4ef1f1e0cb8abc44d331c8e6be85a4fd2
Contents?: true
Size: 637 Bytes
Versions: 5
Compression:
Stored size: 637 Bytes
Contents
require_relative 'test_helper' class FileBlobsFixtureTest < ActiveSupport::TestCase setup do @ruby = FileBlob.where(id: file_blob_id('files/ruby.png')).first @invoice = FileBlob.where(id: file_blob_id('files/invoice.pdf')).first @ruby_path = File.expand_path '../fixtures/files/ruby.png', __FILE__ @invoice_path = File.expand_path '../fixtures/files/invoice.pdf', __FILE__ end test 'ruby fixture' do assert @ruby assert_equal file_blob_data('files/ruby.png'), @ruby.data end test 'invoice fixture' do assert @invoice assert_equal file_blob_data('files/invoice.pdf'), @invoice.data end end
Version data entries
5 entries across 5 versions & 1 rubygems