forked from masao/enju_grid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
77 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :agent_relationship do |f| | ||
f.parent_id{FactoryGirl.create(:agent).id} | ||
f.child_id{FactoryGirl.create(:agent).id} | ||
f.parent_id{FactoryBot.create(:agent).id} | ||
f.child_id{FactoryBot.create(:agent).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :basket do |f| | ||
f.user_id{FactoryGirl.create(:user).id} | ||
f.user_id{FactoryBot.create(:user).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :create do |f| | ||
f.work_id{FactoryGirl.create(:manifestation).id} | ||
f.agent_id{FactoryGirl.create(:agent).id} | ||
f.work_id{FactoryBot.create(:manifestation).id} | ||
f.agent_id{FactoryBot.create(:agent).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :donate do |f| | ||
f.item_id{FactoryGirl.create(:item).id} | ||
f.agent_id{FactoryGirl.create(:agent).id} | ||
f.item_id{FactoryBot.create(:item).id} | ||
f.agent_id{FactoryBot.create(:agent).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :exemplify do |f| | ||
f.manifestation_id{FactoryGirl.create(:manifestation).id} | ||
f.item_id{FactoryGirl.create(:item).id} | ||
f.manifestation_id{FactoryBot.create(:manifestation).id} | ||
f.item_id{FactoryBot.create(:item).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :extent do |f| | ||
f.sequence(:name){|n| "extent_#{n}"} | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :item do |f| | ||
f.sequence(:item_identifier){|n| "item_#{n}"} | ||
f.circulation_status_id{CirculationStatus.find(1).id} | ||
f.manifestation_id{FactoryGirl.create(:manifestation).id} | ||
f.manifestation_id{FactoryBot.create(:manifestation).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :license do |f| | ||
f.sequence(:name){|n| "license_#{n}"} | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :manifestation_relationship do |f| | ||
f.parent_id{FactoryGirl.create(:manifestation).id} | ||
f.child_id{FactoryGirl.create(:manifestation).id} | ||
f.parent_id{FactoryBot.create(:manifestation).id} | ||
f.child_id{FactoryBot.create(:manifestation).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :own do |f| | ||
f.item_id{FactoryGirl.create(:item).id} | ||
f.agent_id{FactoryGirl.create(:agent).id} | ||
f.item_id{FactoryBot.create(:item).id} | ||
f.agent_id{FactoryBot.create(:agent).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :produce do |f| | ||
f.manifestation_id{FactoryGirl.create(:manifestation).id} | ||
f.agent_id{FactoryGirl.create(:agent).id} | ||
f.manifestation_id{FactoryBot.create(:manifestation).id} | ||
f.agent_id{FactoryBot.create(:agent).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :profile, :class => Profile do |f| | ||
f.user_group_id {UserGroup.first.id} | ||
f.required_role_id {Role.where(name: 'User').first.id} | ||
f.sequence(:user_number){|n| "user_number_#{n}"} | ||
f.library_id 2 | ||
f.locale "ja" | ||
f.user_id {FactoryGirl.create(:user).id} | ||
f.user_id {FactoryBot.create(:user).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :realize do |f| | ||
f.expression_id{FactoryGirl.create(:manifestation).id} | ||
f.agent_id{FactoryGirl.create(:agent).id} | ||
f.expression_id{FactoryBot.create(:manifestation).id} | ||
f.agent_id{FactoryBot.create(:agent).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :series_has_manifestation do |f| | ||
f.manifestation_id{FactoryGirl.create(:manifestation).id} | ||
f.series_statement_id{FactoryGirl.create(:series_statement).id} | ||
f.manifestation_id{FactoryBot.create(:manifestation).id} | ||
f.series_statement_id{FactoryBot.create(:series_statement).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Read about factories at https://github.com/thoughtbot/factory_girl | ||
|
||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :series_statement_relationship do |f| | ||
f.parent_id{FactoryGirl.create(:series_statement).id} | ||
f.child_id{FactoryGirl.create(:series_statement).id} | ||
f.parent_id{FactoryBot.create(:series_statement).id} | ||
f.child_id{FactoryBot.create(:series_statement).id} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters