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