Sha256: 703c5c38e78a1ad06c2c05b899a566778052aa21a90fc4614fd318607f4f8e6d
Contents?: true
Size: 836 Bytes
Versions: 12
Compression:
Stored size: 836 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_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 UserReserveStatQueue.perform(user_reserve_stats(:one).id).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
12 entries across 12 versions & 1 rubygems