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
25 changed files
with
101 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
class Identifier::Guid < ActiveRecord::Base | ||
class Identifier::Guid < Identifier | ||
|
||
|
||
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,2 +1,2 @@ | ||
class Identifier::Guid::Doi < ActiveRecord::Base | ||
class Identifier::Guid::Doi < Identifier::Guid | ||
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,2 +1,2 @@ | ||
class Identifier::Guid::Isbn < ActiveRecord::Base | ||
class Identifier::Guid::Isbn < Identifier::Guid | ||
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,2 +1,2 @@ | ||
class Identifier::Guid::Issn < ActiveRecord::Base | ||
class Identifier::Guid::Issn < Identifier::Guid | ||
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,2 +1,2 @@ | ||
class Identifier::Guid::Lccn < ActiveRecord::Base | ||
class Identifier::Guid::Lccn < Identifier::Guid | ||
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,2 +1,2 @@ | ||
class Identifier::Guid::Lsid < ActiveRecord::Base | ||
class Identifier::Guid::Lsid < Identifier::Guid | ||
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,2 +1,2 @@ | ||
class Identifier::Guid::OrcidId < ActiveRecord::Base | ||
class Identifier::Guid::OrcidId < Identifier::Guid | ||
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,2 +1,2 @@ | ||
class Identifier::Guid::Uri < ActiveRecord::Base | ||
class Identifier::Guid::Uri < Identifier::Guid | ||
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,2 +1,2 @@ | ||
class Identifier::Guid::Uuid < ActiveRecord::Base | ||
class Identifier::Guid::Uuid < Identifier::Guid | ||
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,2 +1,2 @@ | ||
class Identifier::LocalId < ActiveRecord::Base | ||
class Identifier::LocalId < Identifier | ||
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,2 +1,2 @@ | ||
class Identifier::LocalId::ImportId < ActiveRecord::Base | ||
class Identifier::LocalId::ImportId < Identifier::LocalId | ||
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,2 +1,2 @@ | ||
class Identifier::LocalId::TripCode < ActiveRecord::Base | ||
class Identifier::LocalId::TripCode < Identifier::LocalId | ||
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
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,14 +1,26 @@ | ||
FactoryGirl.define do | ||
factory :bibtex_source, class: 'Source::Bibtex' do | ||
end | ||
|
||
factory :valid_bibtex_source, class: 'Source::Bibtex' do | ||
bibtex_type 'article' | ||
title 'article 1 just title' | ||
end | ||
factory :bibtex_source_base, class: Source::Bibtex do | ||
|
||
ignore do | ||
|
||
end | ||
|
||
association :creator, factory: :valid_user, strategy: :build | ||
association :updater, factory: :valid_user, strategy: :build | ||
association :project, factory: :valid_project, strategy: :build | ||
|
||
factory :bibtex_source, class: 'Source::Bibtex' do | ||
end | ||
|
||
factory :valid_bibtex_source, class: 'Source::Bibtex' do | ||
bibtex_type 'article' | ||
title 'article 1 just title' | ||
end | ||
|
||
factory :valid_bibtex_source_book_title_only, class: 'Source::Bibtex' do | ||
bibtex_type 'book' | ||
title 'valid book with just a title' | ||
factory :valid_bibtex_source_book_title_only, class: 'Source::Bibtex' do | ||
bibtex_type 'book' | ||
title 'valid book with just a title' | ||
end | ||
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,7 +1,15 @@ | ||
FactoryGirl.define do | ||
|
||
factory :person_base, class: Person do | ||
association :creator, factory: :valid_user | ||
association :updater, factory: :valid_user | ||
|
||
factory :person do | ||
end | ||
|
||
factory :valid_person do | ||
last_name "Smith" | ||
end | ||
end | ||
factory :valid_person, class: Person do | ||
last_name "Smith" | ||
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,11 +1,14 @@ | ||
# Read about factories at https://github.com/thoughtbot/factory_girl | ||
|
||
FactoryGirl.define do | ||
factory :project do | ||
name "MyString" | ||
end | ||
|
||
factory :valid_project, class: Project do | ||
name "MyString" | ||
factory :base_project, class: Project do | ||
name 'My Project' | ||
|
||
factory :project do | ||
end | ||
|
||
factory :valid_project do | ||
end | ||
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