Sha256: 0948dce989d4a60edbee35fc3e634ffe00cc5b26f00ba8f5e6287907e368af47
Contents?: true
Size: 936 Bytes
Versions: 1
Compression:
Stored size: 936 Bytes
Contents
require 'rails_helper' describe CheckedItem do fixtures :all it "should respond to available_for_checkout?" do checked_items(:checked_item_00001).available_for_checkout?.should_not be_truthy end it "should change circulation_status when a missing item is found" do basket = Basket.new basket.user = users(:admin) checked_item = CheckedItem.new checked_item.item = items(:item_00024) checked_item.basket = basket checked_item.save! items(:item_00024).circulation_status.name.should eq 'Available On Shelf' end end # == Schema Information # # Table name: checked_items # # id :bigint not null, primary key # item_id :bigint not null # basket_id :bigint not null # librarian_id :bigint # due_date :datetime not null # created_at :datetime not null # updated_at :datetime not null # user_id :bigint #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_circulation-0.4.0.rc.1 | spec/models/checked_item_spec.rb |