Sha256: 84b648b74cc0042bba51266f63b7d0f6b8fb33b8b664168f74c209143fb8743b
Contents?: true
Size: 904 Bytes
Versions: 22
Compression:
Stored size: 904 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 :integer not null, primary key # item_id :integer not null # basket_id :integer not null # librarian_id :integer # due_date :datetime not null # created_at :datetime # updated_at :datetime # user_id :integer #
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
enju_circulation-0.2.2 | spec/models/checked_item_spec.rb |
enju_circulation-0.2.1 | spec/models/checked_item_spec.rb |