# HG changeset patch # User luisf # Date 1377018006 -3600 # Node ID 987e71e731160c0fac876f47d0f9119d9756b7a0 # Parent a2e51c0a78608833203a2691a51995c1596cdb67 Setup of testing framework for the bibliography plugin. diff -r a2e51c0a7860 -r 987e71e73116 plugins/redmine_bibliography/test/test_helper.rb --- a/plugins/redmine_bibliography/test/test_helper.rb Mon Aug 19 16:33:09 2013 +0100 +++ b/plugins/redmine_bibliography/test/test_helper.rb Tue Aug 20 18:00:06 2013 +0100 @@ -1,20 +1,21 @@ +ENV['RAILS_ENV'] ||= 'test' + # Load the normal Rails helper -require File.expand_path(File.dirname(__FILE__) + '/../../../../test/test_helper') -require 'publications_controller' +require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper') +require File.expand_path(File.dirname(__FILE__) + '/../app/controllers/publications_controller') # Ensure that we are using the temporary fixture path -Engines::Testing.set_fixture_path +# Engines::Testing.set_fixture_path class BibliographyControllerTest < ActionController::TestCase - fixtures :all + # fixtures :all def setup end def test_publication - + assert 1 == 0 end - def test_routing assert_routing( @@ -22,3 +23,5 @@ :controller => 'requirements', :action => 'index' ) end + +end diff -r a2e51c0a7860 -r 987e71e73116 plugins/redmine_bibliography/test/unit/authorship_test.rb --- a/plugins/redmine_bibliography/test/unit/authorship_test.rb Mon Aug 19 16:33:09 2013 +0100 +++ b/plugins/redmine_bibliography/test/unit/authorship_test.rb Tue Aug 20 18:00:06 2013 +0100 @@ -7,4 +7,7 @@ def test_truth assert true end + + + end