Skip to content

Commit

Permalink
update fixture files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jan 14, 2019
1 parent a86c520 commit 20d3267
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 17 deletions.
5 changes: 5 additions & 0 deletions lib/enju_loc.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
require "enju_loc/engine"

module EnjuLoc
class RecordNotFound < StandardError
end

class InvalidIsbn < StandardError
end
end
47 changes: 31 additions & 16 deletions spec/fixtures/carrier_types.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,54 @@
---
carrier_type_00001:
name: volume
display_name: "en: Volume\r\n\
ja: 冊子体"
display_name: {"en": "Volume", "ja": "Volume"}
updated_at: 2007-11-20 16:04:29.853828 +09:00
id: 1
note: !binary |
5pys44Gn44GZ44CC
created_at: 2007-11-20 15:47:03.641530 +09:00
position: 1
carrier_type_00002:
name: audio_disc
display_name: "en: Audio disc\r\n\
ja: オーディオディスク"
display_name: {"en": "Audio disc", "ja": "Audio disc"}
updated_at: 2007-12-19 01:45:26.040674 +09:00
id: 2
note: "\xE9\x9F\xB3\xE6\xA5\xBDCD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
created_at: 2007-12-19 01:45:26.040674 +09:00
position: 2
carrier_type_00003:
name: videodisc
display_name: "en: Videodisc\r\n\
ja: ビデオディスク"
display_name: {"en": "Video disc", "ja": "Video disc"}
updated_at: 2007-12-23 04:24:23.151410 +09:00
id: 3
note: "DVD\xE3\x81\xA7\xE3\x81\x99\xE3\x80\x82"
created_at: 2007-12-23 04:24:23.151410 +09:00
position: 3
carrier_type_00004:
name: online_resource
display_name: "en: Online resource\r\n\
ja: オンラインリソース"
display_name: {"en": "online_resource", "ja": "online_resource"}
updated_at: 2007-12-24 01:30:50.637433 +09:00
id: 4
note: !binary |
44Kz44Oz44OU44Ol44O844K/44Gu44OV44Kh44Kk44Or44Gn44GZ44CC
created_at: 2007-12-24 01:30:50.637433 +09:00
position: 4

# == Schema Information
#
# Table name: carrier_types
#
# id :integer not null, primary key
# name :string(255) not null
# display_name :text
# note :text
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint(8) not null, primary key
# name :string not null
# display_name :jsonb not null
# note :text
# position :integer default(1), not null
# created_at :datetime not null
# updated_at :datetime not null
# attachment_file_name :string
# attachment_content_type :string
# attachment_file_size :bigint(8)
# attachment_updated_at :datetime
#

15 changes: 14 additions & 1 deletion spec/fixtures/content_types.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
content_type_00001:
id: 1
name: text
name: text
display_name: "en: text\r\n\
ja: 文字"
note:
Expand Down Expand Up @@ -83,3 +83,16 @@ content_type_00012:
ja: 不明"
note: LCMARCに由来
position: 12

# == Schema Information
#
# Table name: content_types
#
# id :bigint(8) not null, primary key
# name :string not null
# display_name :text
# note :text
# position :integer default(1), not null
# created_at :datetime not null
# updated_at :datetime not null
#

0 comments on commit 20d3267

Please sign in to comment.