Sha256: 5fe09324d55fbd17bd46af21bf804c5a6c5061ce72e051171577adeeb9e1f3f4

Contents?: true

Size: 711 Bytes

Versions: 1

Compression:

Stored size: 711 Bytes

Contents

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

describe UserReserveStat do
  fixtures :user_reserve_stats

  it "calculates user count" do
    user_reserve_stats(:one).transition_to!(:started).should be_truthy
  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
#  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/user_reserve_stat_spec.rb