Sha256: 454542d244d653804004b39b7b761d94a4545f2ba1a71346c826b5626091e3a9

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

require 'rails_helper'

describe Library do
  fixtures :all

  before(:each) do
    @library = FactoryBot.create(:library)
  end

  it "should should create default shelf" do
    @library.shelves.first.should be_truthy
    @library.shelves.first.name.should eq "#{@library.name}_default"
  end
end

# == Schema Information
#
# Table name: libraries
#
#  id                        :bigint           not null, primary key
#  name                      :string           not null
#  display_name              :text
#  short_display_name        :string           not null
#  zip_code                  :string
#  street                    :text
#  locality                  :text
#  region                    :text
#  telephone_number_1        :string
#  telephone_number_2        :string
#  fax_number                :string
#  note                      :text
#  call_number_rows          :integer          default(1), not null
#  call_number_delimiter     :string           default("|"), not null
#  library_group_id          :bigint           not null
#  users_count               :integer          default(0), not null
#  position                  :integer
#  country_id                :bigint
#  created_at                :datetime         not null
#  updated_at                :datetime         not null
#  opening_hour              :text
#  isil                      :string
#  latitude                  :float
#  longitude                 :float
#  display_name_translations :jsonb            not null
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_library-0.4.0.rc.1 spec/models/library_spec.rb