Sha256: d7d3cccbc7d05ab01dcb8de68015d4170c61888be6da0957e98746118e55a4eb
Contents?: true
Size: 1.55 KB
Versions: 15
Compression:
Stored size: 1.55 KB
Contents
require 'rails_helper' describe Item do # pending "add some examples to (or delete) #{__FILE__}" fixtures :all it "should have library_url" do items(:item_00001).library_url.should eq "#{LibraryGroup.site_config.url}libraries/web" end it "should not create item without manifestation_id" do item = items(:item_00001) item.manifestation_id = nil item.valid?.should be_falsy end end # == Schema Information # # Table name: items # # id :integer not null, primary key # call_number :string # item_identifier :string # created_at :datetime # updated_at :datetime # deleted_at :datetime # shelf_id :integer default(1), not null # include_supplements :boolean default(FALSE), not null # note :text # url :string # price :integer # lock_version :integer default(0), not null # required_role_id :integer default(1), not null # required_score :integer default(0), not null # acquired_at :datetime # bookstore_id :integer # budget_type_id :integer # circulation_status_id :integer default(5), not null # checkout_type_id :integer default(1), not null # binding_item_identifier :string # binding_call_number :string # binded_at :datetime # manifestation_id :integer not null # memo :text #
Version data entries
15 entries across 15 versions & 1 rubygems