Revision 1371:a8d468e143f7 plugins/redmine_bibliography/test/functional
| plugins/redmine_bibliography/test/functional/authors_controller_test.rb | ||
|---|---|---|
| 1 |
# authors_controller_test.rb |
|
| 2 |
|
|
| 1 | 3 |
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') |
| 2 | 4 |
|
| 3 | 5 |
class AuthorsControllerTest < ActionController::TestCase |
| 4 | 6 |
self.fixture_path = File.dirname(__FILE__) + "/../fixtures/" |
| 5 |
fixtures :users, :authors |
|
| 7 |
fixtures :users, :authors, :authorships
|
|
| 6 | 8 |
|
| 7 |
def test_users_authors_relationship
|
|
| 8 |
assert Author.first.user.name == "redMine Admin"
|
|
| 9 |
def test_truth
|
|
| 10 |
assert true
|
|
| 9 | 11 |
end |
| 10 | 12 |
|
| 11 | 13 |
end |
Also available in: Unified diff