Sha256: ad1623a856666098feb71dbc73208e0454bd45b22f0bf91a4d5d79685c352929

Contents?: true

Size: 1.42 KB

Versions: 11

Compression:

Stored size: 1.42 KB

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe Library do
  fixtures :all

  before(:each) do
    @library = FactoryGirl.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                    :integer          not null, primary key
#  name                  :string(255)      not null
#  display_name          :text
#  short_display_name    :string(255)      not null
#  zip_code              :string(255)
#  street                :text
#  locality              :text
#  region                :text
#  telephone_number_1    :string(255)
#  telephone_number_2    :string(255)
#  fax_number            :string(255)
#  note                  :text
#  call_number_rows      :integer          default(1), not null
#  call_number_delimiter :string(255)      default("|"), not null
#  library_group_id      :integer          default(1), not null
#  users_count           :integer          default(0), not null
#  position              :integer
#  country_id            :integer
#  created_at            :datetime         not null
#  updated_at            :datetime         not null
#  deleted_at            :datetime
#  opening_hour          :text
#  isil                  :string(255)
#  latitude              :float
#  longitude             :float
#

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
enju_library-0.1.0.pre43 spec/models/library_spec.rb
enju_library-0.1.0.pre42 spec/models/library_spec.rb
enju_library-0.1.0.pre41 spec/models/library_spec.rb
enju_library-0.1.0.pre40 spec/models/library_spec.rb
enju_library-0.1.0.pre39 spec/models/library_spec.rb
enju_library-0.1.0.pre38 spec/models/library_spec.rb
enju_library-0.1.0.pre37 spec/models/library_spec.rb
enju_library-0.1.0.pre36 spec/models/library_spec.rb
enju_library-0.1.0.pre35 spec/models/library_spec.rb
enju_library-0.1.0.pre34 spec/models/library_spec.rb
enju_library-0.1.0.pre33 spec/models/library_spec.rb