Sha256: 341f21c473e6d1cc759c788a62997e94d1af872e2c2a2001b6c62f1899820b96

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

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

describe UserCheckoutStat do
  fixtures :user_checkout_stats

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

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

# == Schema Information
#
# Table name: user_checkout_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_checkout_stat_spec.rb