Sha256: 5c8fe765b935bb18d0ee576d32c7fb79b2a95c13e1fa70a15758c405ef61f2e4
Contents?: true
Size: 889 Bytes
Versions: 5
Compression:
Stored size: 889 Bytes
Contents
# -*- encoding: utf-8 -*- require 'rails_helper' describe EventExportFile do fixtures :all it "should export in background" do message_count = Message.count file = EventExportFile.new file.user = users(:admin) file.save EventExportFileJob.perform_later(file).should be_truthy Message.count.should eq message_count + 1 Message.order(:id).last.subject.should eq 'エクスポートが完了しました' end end # == Schema Information # # Table name: event_export_files # # id :integer not null, primary key # user_id :integer # event_export_file_name :string # event_export_content_type :string # event_export_file_size :integer # event_export_updated_at :datetime # executed_at :datetime # created_at :datetime # updated_at :datetime #
Version data entries
5 entries across 5 versions & 1 rubygems