Sha256: ab425e6ad726577f8b3a88bf4e9dd839fec6bc70b0a05572e7bd1f11318f3b42

Contents?: true

Size: 550 Bytes

Versions: 9

Compression:

Stored size: 550 Bytes

Contents

require 'rails_helper'

describe Accept do
  fixtures :all

  it "should change circulation_status" do
    accept = FactoryGirl.create(:accept)
    accept.item.circulation_status.name.should eq 'Available On Shelf'
    accept.item.use_restriction.name.should eq 'Limited Circulation, Normal Loan Period'
  end
end

# == Schema Information
#
# Table name: accepts
#
#  id           :integer          not null, primary key
#  basket_id    :integer
#  item_id      :integer
#  librarian_id :integer
#  created_at   :datetime
#  updated_at   :datetime
#

Version data entries

9 entries across 7 versions & 2 rubygems

Version Path
enju_library-0.2.3 spec/models/accept_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/models/accept_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/models/accept_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/models/accept_spec.rb
enju_library-0.2.2 spec/models/accept_spec.rb
enju_library-0.2.1 spec/models/accept_spec.rb
enju_library-0.2.0 spec/models/accept_spec.rb
enju_library-0.2.0.beta.10 spec/models/accept_spec.rb
enju_library-0.2.0.beta.9 spec/models/accept_spec.rb