Sha256: ee46ee71b5373b40baecd70460857f139b91a03e6ed043cf27bb21841c5e24b9

Contents?: true

Size: 774 Bytes

Versions: 1

Compression:

Stored size: 774 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe ManifestationReserveStat do
  fixtures :manifestation_reserve_stats

  it "calculates manifestation count" do
    manifestation_reserve_stats(:one).transition_to!(:started).should be_truthy
  end

  it "should calculate in background" do
    ManifestationReserveStatQueue.perform(manifestation_reserve_stats(:one).id).should be_truthy
  end
end

# == Schema Information
#
# Table name: manifestation_reserve_stats
#
#  id           :integer          not null, primary key
#  start_date   :datetime
#  end_date     :datetime
#  note         :text
#  state        :string(255)
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#  started_at   :datetime
#  completed_at :datetime
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre36 spec/models/manifestation_reserve_stat_spec.rb