changeset 1369:40e64d14e691 bibliography_testing

Correctly loading fixtures.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 21 Aug 2013 17:51:08 +0100
parents 987e71e73116
children 0b169a5e3837
files plugins/redmine_bibliography/test/test_helper.rb
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/redmine_bibliography/test/test_helper.rb	Tue Aug 20 18:00:06 2013 +0100
+++ b/plugins/redmine_bibliography/test/test_helper.rb	Wed Aug 21 17:51:08 2013 +0100
@@ -4,24 +4,24 @@
 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
+class BibliographyControllerTest < ActionController::TestCase
+  self.fixture_path = File.dirname(__FILE__) + "/fixtures/"
 
-class BibliographyControllerTest < ActionController::TestCase
-  # fixtures :all
+  fixtures :authors
 
   def setup
+
   end
 
   def test_publication
     assert 1 == 0
   end
 
-  def test_routing
-    assert_routing(
-          {:method => :get, :path => '/requirements'},
-          :controller => 'requirements', :action => 'index'
-        )
-  end
+  # def test_routing
+  #   assert_routing(
+  #         {:method => :get, :path => '/requirements'},
+  #         :controller => 'requirements', :action => 'index'
+  #       )
+  # end
 
 end