Sha256: 54ca42ae8430d29e07c7de7c26c3db09cbb5b975613eb4ffa6543bf3c8cb410b

Contents?: true

Size: 780 Bytes

Versions: 6

Compression:

Stored size: 780 Bytes

Contents

require 'spec_helper'

describe SeriesStatementMergeList do
  fixtures :all

  it "should merge series_statment" do
    series_statement_merge_list = series_statement_merge_lists(:series_statement_merge_list_00001)
    series_statement = SeriesStatement.find(2)
    series_statement_merge_list.merge_series_statements(series_statement).should be_true
    Manifestation.find(2).series_statement.id.should eq 2
    Manifestation.find(3).series_statement.id.should eq 2
    Manifestation.find(3).series_statement.original_title.should eq series_statement.original_title
  end
end

# == Schema Information
#
# Table name: series_statement_merge_lists
#
#  id         :integer         not null, primary key
#  title      :string(255)
#  created_at :datetime
#  updated_at :datetime
#

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_resource_merge-0.1.0.pre4 spec/models/series_statement_merge_list_spec.rb
enju_resource_merge-0.1.0.pre3 spec/models/series_statement_merge_list_spec.rb
enju_resource_merge-0.1.0.pre2 spec/models/series_statement_merge_list_spec.rb
enju_resource_merge-0.1.0.pre spec/models/series_statement_merge_list_spec.rb
enju_resource_merge-0.0.17 spec/models/series_statement_merge_list_spec.rb
enju_resource_merge-0.0.16 spec/models/series_statement_merge_list_spec.rb