Revision 723:d41bf754c0f2 vendor/plugins/redmine_bibliography/test
| vendor/plugins/redmine_bibliography/test/fixtures/authors.yml | ||
|---|---|---|
| 1 |
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html |
|
| 2 |
one: |
|
| 3 |
id: 1 |
|
| 4 |
user_id: |
|
| 5 |
name: MyString |
|
| 6 |
two: |
|
| 7 |
id: 2 |
|
| 8 |
user_id: |
|
| 9 |
name: MyString |
|
| 10 |
one: |
|
| 11 |
id: 3 |
|
| 12 |
user_id: |
|
| 13 |
name: MyString |
|
| 14 |
two: |
|
| 15 |
id: 4 |
|
| 16 |
user_id: |
|
| 17 |
name: MyString |
|
| vendor/plugins/redmine_bibliography/test/fixtures/authorships.yml | ||
|---|---|---|
| 1 |
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html |
|
| 2 |
one: |
|
| 3 |
id: 1 |
|
| 4 |
author_id: 1 |
|
| 5 |
publication_id: 1 |
|
| 6 |
name_on_paper: Yih-Farn R. Chen |
|
| 7 |
order: 1 |
|
| 8 |
institution: |
|
| 9 |
email: MyString |
|
| 10 |
two: |
|
| 11 |
id: 2 |
|
| 12 |
author_id: 2 |
|
| 13 |
publication_id: 1 |
|
| 14 |
name_on_paper: Glenn S. Fowler |
|
| 15 |
order: 2 |
|
| 16 |
institution: |
|
| 17 |
email: MyString |
|
| 18 |
three: |
|
| 19 |
id: 3 |
|
| 20 |
author_id: 1 |
|
| 21 |
publication_id: 1 |
|
| 22 |
name_on_paper: Yih-Farn R. Chen |
|
| 23 |
order: 1 |
|
| 24 |
institution: |
|
| 25 |
email: MyString |
|
| 26 |
four: |
|
| 27 |
id: 4 |
|
| 28 |
author_id: 2 |
|
| 29 |
publication_id: 1 |
|
| 30 |
name_on_paper: Glenn S. Fowler |
|
| 31 |
order: 2 |
|
| 32 |
institution: |
|
| 33 |
email: MyString |
|
| vendor/plugins/redmine_bibliography/test/fixtures/bibtex_entries.yml | ||
|---|---|---|
| 1 |
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html |
|
| 2 |
one: |
|
| 3 |
id: 1 |
|
| 4 |
entry_type: InProceedings |
|
| 5 |
booktitle: International Conference on Software Maintenance |
|
| 6 |
year: 1995 |
|
| vendor/plugins/redmine_bibliography/test/fixtures/publications.yml | ||
|---|---|---|
| 1 |
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html |
|
| 2 |
one: |
|
| 3 |
id: 1 |
|
| 4 |
title: Test Fixture Title No1 |
|
| 5 |
bibtex_entry_id: 1 |
|
| 6 |
two: |
|
| 7 |
id: 2 |
|
| 8 |
title: MyString |
|
| 9 |
bibtex_entry_id: MyString |
|
| vendor/plugins/redmine_bibliography/test/functional/authors_controller_test.rb | ||
|---|---|---|
| 1 |
require File.dirname(__FILE__) + '/../test_helper' |
|
| 2 |
|
|
| 3 |
class AuthorsControllerTest < ActionController::TestCase |
|
| 4 |
# Replace this with your real tests. |
|
| 5 |
def test_truth |
|
| 6 |
assert true |
|
| 7 |
end |
|
| 8 |
end |
|
| vendor/plugins/redmine_bibliography/test/functional/authorships_controller_test.rb | ||
|---|---|---|
| 1 |
require File.dirname(__FILE__) + '/../test_helper' |
|
| 2 |
|
|
| 3 |
class AuthorshipsControllerTest < ActionController::TestCase |
|
| 4 |
# Replace this with your real tests. |
|
| 5 |
def test_truth |
|
| 6 |
assert true |
|
| 7 |
end |
|
| 8 |
end |
|
| vendor/plugins/redmine_bibliography/test/functional/publications_controller_test.rb | ||
|---|---|---|
| 1 |
require File.dirname(__FILE__) + '/../test_helper' |
|
| 2 |
|
|
| 3 |
class PublicationsControllerTest < ActionController::TestCase |
|
| 4 |
# Replace this with your real tests. |
|
| 5 |
def test_truth |
|
| 6 |
assert true |
|
| 7 |
end |
|
| 8 |
end |
|
| vendor/plugins/redmine_bibliography/test/test_helper.rb | ||
|---|---|---|
| 1 |
# Load the normal Rails helper |
|
| 2 |
require File.expand_path(File.dirname(__FILE__) + '/../../../../test/test_helper') |
|
| 3 |
require 'publications_controller' |
|
| 4 |
|
|
| 5 |
# Ensure that we are using the temporary fixture path |
|
| 6 |
Engines::Testing.set_fixture_path |
|
| 7 |
|
|
| 8 |
class BibliographyControllerTest < ActionController::TestCase |
|
| 9 |
fixtures :all |
|
| 10 |
|
|
| 11 |
def setup |
|
| 12 |
end |
|
| 13 |
|
|
| 14 |
def test_publication |
|
| 15 |
|
|
| 16 |
end |
|
| 17 |
|
|
| 18 |
|
|
| 19 |
def test_routing |
|
| 20 |
assert_routing( |
|
| 21 |
{:method => :get, :path => '/requirements'},
|
|
| 22 |
:controller => 'requirements', :action => 'index' |
|
| 23 |
) |
|
| 24 |
end |
|
| vendor/plugins/redmine_bibliography/test/unit/author_test.rb | ||
|---|---|---|
| 1 |
require File.dirname(__FILE__) + '/../test_helper' |
|
| 2 |
|
|
| 3 |
class AuthorTest < ActiveSupport::TestCase |
|
| 4 |
fixtures :authors |
|
| 5 |
|
|
| 6 |
# Replace this with your real tests. |
|
| 7 |
def test_truth |
|
| 8 |
assert true |
|
| 9 |
end |
|
| 10 |
end |
|
| vendor/plugins/redmine_bibliography/test/unit/authorship_test.rb | ||
|---|---|---|
| 1 |
require File.dirname(__FILE__) + '/../test_helper' |
|
| 2 |
|
|
| 3 |
class AuthorshipTest < ActiveSupport::TestCase |
|
| 4 |
fixtures :authorships |
|
| 5 |
|
|
| 6 |
# Replace this with your real tests. |
|
| 7 |
def test_truth |
|
| 8 |
assert true |
|
| 9 |
end |
|
| 10 |
end |
|
| vendor/plugins/redmine_bibliography/test/unit/bibtex_entry_test.rb | ||
|---|---|---|
| 1 |
require File.dirname(__FILE__) + '/../test_helper' |
|
| 2 |
|
|
| 3 |
class BibtexEntryTest < ActiveSupport::TestCase |
|
| 4 |
fixtures :bibtex_entries |
|
| 5 |
|
|
| 6 |
# Replace this with your real tests. |
|
| 7 |
def test_truth |
|
| 8 |
assert true |
|
| 9 |
end |
|
| 10 |
end |
|
| vendor/plugins/redmine_bibliography/test/unit/publication_test.rb | ||
|---|---|---|
| 1 |
require File.dirname(__FILE__) + '/../test_helper' |
|
| 2 |
|
|
| 3 |
class PublicationTest < ActiveSupport::TestCase |
|
| 4 |
fixtures :publications |
|
| 5 |
|
|
| 6 |
# Replace this with your real tests. |
|
| 7 |
def test_truth |
|
| 8 |
assert true |
|
| 9 |
end |
|
| 10 |
end |
|
Also available in: Unified diff