Sha256: f35dd0b38fc6550310408de3705424b6fe95069d2e833323bd2e37a033bc0030
Contents?: true
Size: 957 Bytes
Versions: 12
Compression:
Stored size: 957 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe ManifestationCheckoutStat do fixtures :manifestation_checkout_stats it "calculates manifestation count" do old_message_count = Message.count manifestation_checkout_stats(:one).transition_to!(:started).should be_truthy #Message.count.should eq old_message_count + 1 Message.count.should eq old_message_count + 0 #Message.order(:id).last.subject.should eq '集計が完了しました' end it "should calculate in background" do ManifestationCheckoutStatQueue.perform(manifestation_checkout_stats(:one).id).should be_truthy end end # == Schema Information # # Table name: manifestation_checkout_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