Sha256: 0fc00bd4eaa964f80f3fee100a6e472294006b38cedfd1166ab02d88c0247579
Contents?: true
Size: 1.64 KB
Versions: 2
Compression:
Stored size: 1.64 KB
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe SeriesStatement do fixtures :all it "should create root_manifestation" do series_statement = FactoryGirl.create(:series_statement, :periodical => true) series_statement.root_manifestation.should be_true series_statement.manifestations.size.should eq 1 series_statement.reload series_statement.root_manifestation.periodical_master?.should be_true end it "should destroy root_manifestation" do series_statement = FactoryGirl.create(:series_statement, :periodical => true) series_statement.root_manifestation = Manifestation.first series_statement.save series_statement.reload series_statement.root_manifestation.should be_true series_statement.periodical = false series_statement.save series_statement.reload series_statement.root_manifestation.should be_nil end end # == Schema Information # # Table name: series_statements # # id :integer not null, primary key # original_title :text # numbering :text # title_subseries :text # numbering_subseries :text # position :integer # created_at :datetime not null # updated_at :datetime not null # title_transcription :text # title_alternative :text # series_statement_identifier :string(255) # issn :string(255) # periodical :boolean # root_manifestation_id :integer # note :text # title_subseries_transcription :text #
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_biblio-0.1.0.pre10 | spec/models/series_statement_spec.rb |
enju_biblio-0.1.0.pre9 | spec/models/series_statement_spec.rb |