Sha256: d224f1a1b56c2cff7960df85f555b445d9217de810b3615c09d2efe3cdfb54d5
Contents?: true
Size: 812 Bytes
Versions: 26
Compression:
Stored size: 812 Bytes
Contents
require 'rails_helper' describe UserReserveStat do fixtures :user_reserve_stats it "calculates user count" do old_message_count = Message.count user_reserve_stats(:one).transition_to!(:started).should be_truthy Message.count.should eq old_message_count + 1 Message.order(:id).last.subject.should eq '集計が完了しました' end it "should calculate in background" do UserReserveStatJob.perform_later(user_reserve_stats(:one)).should be_truthy end end # == Schema Information # # Table name: user_reserve_stats # # id :integer not null, primary key # start_date :datetime # end_date :datetime # note :text # created_at :datetime # updated_at :datetime # started_at :datetime # completed_at :datetime # user_id :integer #
Version data entries
26 entries across 26 versions & 1 rubygems