Sha256: bf40d6fa096425f5bb29e24bdc6eaba80fbb69f3fee2c64a8105da77d359009b
Contents?: true
Size: 931 Bytes
Versions: 12
Compression:
Stored size: 931 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_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 EventExportFileQueue.perform(file.id).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(255) # event_export_content_type :string(255) # event_export_file_size :integer # event_export_updated_at :datetime # executed_at :datetime # created_at :datetime not null # updated_at :datetime not null #
Version data entries
12 entries across 12 versions & 1 rubygems