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

Version Path
enju_biblio-0.3.18 spec/models/item_spec.rb
enju_biblio-0.3.17 spec/models/item_spec.rb
enju_biblio-0.3.16 spec/models/item_spec.rb
enju_biblio-0.3.15 spec/models/item_spec.rb
enju_biblio-0.3.14 spec/models/item_spec.rb
enju_biblio-0.3.13 spec/models/item_spec.rb
enju_biblio-0.3.12 spec/models/item_spec.rb
enju_biblio-0.3.11 spec/models/item_spec.rb
enju_biblio-0.3.10 spec/models/item_spec.rb
enju_biblio-0.3.10.rc.3 spec/models/item_spec.rb
enju_biblio-0.3.10.rc.2 spec/models/item_spec.rb
enju_biblio-0.3.10.rc.1 spec/models/item_spec.rb
enju_biblio-0.3.9 spec/models/item_spec.rb
enju_biblio-0.3.8 spec/models/item_spec.rb
enju_biblio-0.3.7 spec/models/item_spec.rb