From 4c2bbeeabd69fd99239b60d4fb77fa8ba92664d7 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Tue, 24 Feb 2015 14:15:05 +0000 Subject: Fix require so that tests can be run from alaveteli Rails.root. --- test/alavetelitheme_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/alavetelitheme_test.rb b/test/alavetelitheme_test.rb index 9e9e34f..3e2d782 100644 --- a/test/alavetelitheme_test.rb +++ b/test/alavetelitheme_test.rb @@ -1,8 +1,8 @@ -require 'test_helper' - +require File.expand_path(File.join(File.dirname(__FILE__), 'test_helper')) class AlavetelithemeTest < ActiveSupport::TestCase # Replace this with your real tests. test "the truth" do assert true end + end -- cgit v1.2.3 From 796211102323302c607dcdca3528441a63fdf98f Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Tue, 24 Feb 2015 14:15:36 +0000 Subject: Add autorunner to make tests runnable with rake. --- test/test_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_helper.rb b/test/test_helper.rb index cf148b8..a2052ee 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,4 @@ require 'rubygems' require 'active_support' -require 'active_support/test_case' \ No newline at end of file +require 'minitest/autorun' +require 'active_support/test_case' -- cgit v1.2.3