Sha256: 892c0e791ad03afa122e53deb8fb7d2158988e016814e627d4761c7340c0eb63
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe Exemplify do fixtures :all before(:each) do @exemplify = FactoryGirl.create(:exemplify) end it 'should create lending policy' do @exemplify.item.lending_policies.size.should eq 3 periods = UserGroupHasCheckoutType.available_for_item(@exemplify.item).order('user_group_has_checkout_types.id').collect(&:checkout_period) @exemplify.item.lending_policies.order('lending_policies.id').collect(&:loan_period).should eq periods end end # == Schema Information # # Table name: exemplifies # # id :integer not null, primary key # manifestation_id :integer not null # item_id :integer not null # position :integer # created_at :datetime # updated_at :datetime #
Version data entries
4 entries across 4 versions & 1 rubygems